 <% if object.errors.any? %>
  <div id="error_explanation" class="alert alert-box">
   <div>
     The form contains <%= pluralize(object.errors.count, "error") %>.
   </div>
  <ul>
   <% object.errors.full_messages.each do |msg| %>
    <li><%= msg %></li>
   <% end %>
 </ul>
</div>
<% end %>

Add partial for displaying all error messages for a form object
Add partial for displaying all error messages for a form object
