From 4ea63afd24ba8ddf8af5af7e28134347f27e2009 Mon Sep 17 00:00:00 2001 From: Tom Hughes Date: Wed, 16 Mar 2011 00:11:34 +0000 Subject: [PATCH] Update use of deprecated forms of form_for --- app/views/diary_entry/view.html.erb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 %>

-- 2.39.5