2016-01-12 18:43:00 -06:00
|
|
|
<% if model.errors.any? %>
|
|
|
|
<div id="error_explanation" class="alert alert-danger">
|
2016-08-15 17:43:02 -05:00
|
|
|
<h4><%= pluralize(model.errors.count, 'error') %> prohibited this <%= model.model_name.human %> from being saved:</h4>
|
2016-01-12 18:43:00 -06:00
|
|
|
|
|
|
|
<ul>
|
|
|
|
<% model.errors.full_messages.each do |msg| %>
|
|
|
|
<li><%= msg %></li>
|
|
|
|
<% end %>
|
|
|
|
</ul>
|
|
|
|
</div>
|
|
|
|
<% end %>
|