]> source.dussan.org Git - redmine.git/commitdiff
error_messages_for removed in Rails 3.
authorJean-Philippe Lang <jp_lang@yahoo.fr>
Wed, 23 Nov 2011 19:58:21 +0000 (19:58 +0000)
committerJean-Philippe Lang <jp_lang@yahoo.fr>
Wed, 23 Nov 2011 19:58:21 +0000 (19:58 +0000)
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@7903 e93f8b46-1217-0410-a6f0-8f06a7374b81

app/views/news/_form.html.erb

index 0cfe7a6d325178247e4d35a06e9ed87ff6a2a278..a3eb87e364c842af05a0736787c76a05c32193e6 100644 (file)
@@ -1,4 +1,4 @@
-<%= error_messages_for 'news' %>
+<%= f.error_messages %>
 <div class="box tabular">
 <p><%= f.text_field :title, :required => true, :size => 60 %></p>
 <p><%= f.text_area :summary, :cols => 60, :rows => 2 %></p>