You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
16 lines
398 B
16 lines
398 B
3 years ago
|
<% if resource.errors.any? %>
|
||
|
<div id="error_explanation">
|
||
|
<h2>
|
||
|
<%= I18n.t("errors.messages.not_saved",
|
||
|
count: resource.errors.count,
|
||
|
resource: resource.class.model_name.human.downcase)
|
||
|
%>
|
||
|
</h2>
|
||
|
<ul>
|
||
|
<% resource.errors.full_messages.each do |message| %>
|
||
|
<li><%= message %></li>
|
||
|
<% end %>
|
||
|
</ul>
|
||
|
</div>
|
||
|
<% end %>
|