improves consistency of error messages [#110]
This commit is contained in:
10
app/views/shared/_errors.html.erb
Normal file
10
app/views/shared/_errors.html.erb
Normal file
@@ -0,0 +1,10 @@
|
||||
<% 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") %>
|
||||
<%= t("form.not_saved", resource: t("form.#{resource.class.to_s.downcase}")) %>
|
||||
</strong>
|
||||
</p>
|
||||
</div>
|
||||
<% end %>
|
||||
Reference in New Issue
Block a user