_form_errors.html.erb
318 Bytes
<% if object.kalibro_errors.any? %>
<div id="error_explanation">
<h2><%= pluralize(object.kalibro_errors.count, "error") %> prohibited this <%= object.class.to_s %> from being saved:</h2>
<ul>
<% object.kalibro_errors.each do |msg| %>
<li><%= msg %></li>
<% end %>
</ul>
</div>
<% end %>