2023-08-06 15:52:05 -07:00
|
|
|
<% if resource.errors.any? %>
|
2024-04-07 06:40:15 -07:00
|
|
|
<div class="error-explanation" data-turbo-cache="false">
|
|
|
|
<header>
|
|
|
|
<%= I18n.t("errors.messages.not_saved", count: resource.errors.count,
|
|
|
|
resource: "user") %>
|
|
|
|
</header>
|
2023-08-06 15:52:05 -07:00
|
|
|
<ul>
|
|
|
|
<% resource.errors.full_messages.each do |message| %>
|
|
|
|
<li><%= message %></li>
|
|
|
|
<% end %>
|
|
|
|
</ul>
|
|
|
|
</div>
|
|
|
|
<% end %>
|