Adds a helper for displaying validation error messages.

git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@9017 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
Jean-Philippe Lang committed 2012-02-26 18:07:13 +00:00
1 parent 9c264a7e66
commit 7c568cccaf
6 files changed
+20 -5

No files matched your search

+1 -1
View File
@@ -1,4 +1,4 @@
<%= f.error_messages %>
<%= error_messages_for @document %>
<div class="box tabular">
<p><%= f.select :category_id, DocumentCategory.active.collect {|c| [c.name, c.id]} %></p>