1 <h2><%= h(@entry.user.display_name) %>'s diary</h2>
3 <%= render :partial => 'diary_entry', :object => @entry %>
7 <%= render :partial => 'diary_comment', :collection => @entry.diary_comments %>
11 <h4 id="newcomment">Leave a comment</h4>
12 <%= error_messages_for 'diary_comment' %>
13 <% form_for :diary_comment, @diary_comment, :url => { :action => 'comment' } do |f| %>
14 <%= f.text_area :body, :cols => 80, :rows => 5 %>
17 <%= submit_tag 'Save' %>
22 <h4 id="newcomment"><%= link_to "Login", :controller => 'user', :action => 'login', :referer => request.request_uri %> to leave a comment</h4>