]> git.openstreetmap.org Git - rails.git/commitdiff
Update use of deprecated forms of form_for
authorTom Hughes <tom@compton.nu>
Wed, 16 Mar 2011 00:11:34 +0000 (00:11 +0000)
committerTom Hughes <tom@compton.nu>
Mon, 14 Nov 2011 09:42:48 +0000 (09:42 +0000)
app/views/diary_entry/view.html.erb

index b8621130a6aa11fbd5d797ea5ac52ab56a484a5b..f0360d2233ad3851feddc43c433096b209743331 100644 (file)
@@ -13,7 +13,7 @@
 
   <%= error_messages_for 'diary_comment' %>
 
 
   <%= 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 />
     <%= f.text_area :body, :cols => 80, :rows => 5 %>
     <br />
     <br />