Skip to content
Browse files

Show errors the right way.

  • Loading branch information...
1 parent e3ece62 commit 870c5669bb6eceb8222a4385a5eb86748207f5a9 @tomas committed Apr 16, 2012
Showing with 2 additions and 2 deletions.
  1. +2 −2 lib/bowtie/views/errors.erb
View
4 lib/bowtie/views/errors.erb
@@ -3,8 +3,8 @@
<div class="errorlist">
<ul>
- <% @resource.errors.each do |message| %>
- <li><%= message %></li>
+ <% @resource.errors.each do |key, message| %>
+ <li><strong><%= key %></strong> <%= ":#{message}" if message %></li>
<% end %>
</ul>

0 comments on commit 870c566

Please sign in to comment.
Something went wrong with that request. Please try again.