% content_for :head do %>
<%= javascript_include_tag "diary_entry" %>
<% end %>
<% content_for :heading do %>
<%= @title %>
<% end %>
<%= form_for @diary_entry, :builder => RichtextFormBuilder do |f| %>
<%= render :partial => "form", :locals => { :f => f } %>
<% end %>