forked from OpenNeo/impress
16 lines
423 B
Text
16 lines
423 B
Text
|
<% if resource.errors.any? %>
|
||
|
<div id="error_explanation" data-turbo-cache="false">
|
||
|
<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 %>
|