Skip to content

Commit

Permalink
Seperate each error message in it's own <li>.
Browse files Browse the repository at this point in the history
  • Loading branch information
ugisozols authored and parndt committed Dec 19, 2010
1 parent 7716154 commit 297d719
Showing 1 changed file with 4 additions and 4 deletions.
Expand Up @@ -3,12 +3,12 @@
<p><%= t('.problems_in_following_fields') %>:</p>
<ul>
<% unless defined?(include_object_name) and include_object_name %>
<% object.errors.each_value do |msg| %>
<li><%= msg %></li>
<% object.errors.each do |key, value| %>
<li><%= value %></li>
<% end %>
<% else %>
<% object.errors.full_messages.each do |msg| %>
<li><%= msg %></li>
<% object.errors.full_messages.each do |value| %>
<li><%= value %></li>
<% end %>
<% end %>
</ul>
Expand Down

0 comments on commit 297d719

Please sign in to comment.