]> git.openstreetmap.org Git - rails.git/blobdiff - app/views/diary_entry/view.html.erb
Update use of deprecated forms of form_for
[rails.git] / app / views / diary_entry / view.html.erb
index b8621130a6aa11fbd5d797ea5ac52ab56a484a5b..f0360d2233ad3851feddc43c433096b209743331 100644 (file)
@@ -13,7 +13,7 @@
 
   <%= 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 />