X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/7d45c2fd3c1a968de487de1afab947a06424d22b..ba97fca4f271132a4c0bad9d298b6a97ecb049c4:/app/views/diary_entry/view.html.erb 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 %>