1
0
Fork 0
find-us-lunch/app/views/application/_form_messages.html.erb

13 lines
311 B
Text
Raw Permalink Normal View History

2014-10-15 13:56:55 -04:00
<% if object.errors.any? %>
<div id="form-errors">
<div class="alert alert-danger">
The form contains <%= pluralize(object.errors.count, 'error') %>.
</div>
<ul>
<% object.errors.full_messages.each do |msg| %>
<li>* <%= msg %></li>
<% end %>
</ul>
</div>
<% end %>