Files
nairobi/app/views/shared/_errors.html.erb
2015-08-28 00:00:59 +02:00

16 lines
432 B
Plaintext

<% if resource.errors.any? %>
<div id="error_explanation" class="alert-box alert radius">
<p>
<strong>
<%= pluralize resource.errors.count, t("form.error"), t("form.errors") %>
<% if local_assigns[:message].present? %>
<%= message %>
<% else %>
<%= t("form.not_saved", resource: t("form.#{resource.class.to_s.downcase}")) %>
<% end %>
</strong>
</p>
</div>
<% end %>