_error_messages.html.erb 309 B

123456789101112
  1. <% if object.errors.any? %>
  2. <div id="error_explanation">
  3. <div class="alert alert-danger">
  4. The form contains <%= pluralize(object.errors.count, "error") %>.
  5. </div>
  6. <ul>
  7. <% object.errors.full_messages.each do |msg| %>
  8. <li><%= msg %></li>
  9. <% end %>
  10. </ul>
  11. </div>
  12. <% end %>