From: Tom Hughes Date: Wed, 16 Mar 2011 00:11:34 +0000 (+0000) Subject: Update use of deprecated forms of form_for X-Git-Tag: live~6120 X-Git-Url: https://git.openstreetmap.org/rails.git/commitdiff_plain/4ea63afd24ba8ddf8af5af7e28134347f27e2009 Update use of deprecated forms of form_for --- diff --git a/app/views/diary_entry/view.html.erb b/app/views/diary_entry/view.html.erb index b8621130a..f0360d223 100644 --- a/app/views/diary_entry/view.html.erb +++ b/app/views/diary_entry/view.html.erb @@ -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 %>