bootcamp/app/views/shared/_errors.html.erb
2023-09-26 11:48:35 -05:00

17 lines
371 B
Plaintext

<% if object.errors.any? %>
<section class="errors">
<h2>
Oops! Your form could not be saved.
</h2>
<h3>
Please correct the following
<%= pluralize(object.errors.size, "error") %>:
</h3>
<ul>
<% object.errors.full_messages.each do |message| %>
<li><%= message %></li>
<% end %>
</ul>
</section>
<% end %>