scheduled_reminders/app/views/devise/shared/_error_messages.html.erb

16 lines
398 B
Plaintext
Raw Permalink Normal View History

2020-02-12 13:26:25 +01:00
<% 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 %>