parsley/app/views/shared/_error_list.html.erb
2016-08-15 17:43:02 -05:00

11 lines
361 B
Plaintext

<% if model.errors.any? %>
<div id="error_explanation" class="alert alert-danger">
<h4><%= pluralize(model.errors.count, 'error') %> prohibited this <%= model.model_name.human %> from being saved:</h4>
<ul>
<% model.errors.full_messages.each do |msg| %>
<li><%= msg %></li>
<% end %>
</ul>
</div>
<% end %>