<%= error_messages_for 'diary_comment' %>
- <%= form_for :diary_comment, @diary_comment, :url => { :action => 'comment' } do |f| %>
+ <%= form_for DiaryComment.new, :url => { :action => 'comment' } do |f| %>
<%= f.text_area :body, :cols => 80, :rows => 5 %>
<br />
<br />