12 lines
311 B
Text
12 lines
311 B
Text
<% 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 %>
|