mirror of
https://github.com/heartcombo/devise.git
synced 2022-11-09 12:18:31 -05:00
16 lines
393 B
Text
16 lines
393 B
Text
|
<% 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 %>
|
||
|
<% end %>
|
||
|
</ul>
|
||
|
</div>
|
||
|
<% end %>
|