18 lines
424 B
Plaintext
18 lines
424 B
Plaintext
|
<%= form_with(model: email) do |form| %>
|
||
|
<% if email.errors.any? %>
|
||
|
<div id="error_explanation">
|
||
|
<h2><%= pluralize(email.errors.count, "error") %> prohibited this email from being saved:</h2>
|
||
|
|
||
|
<ul>
|
||
|
<% email.errors.each do |error| %>
|
||
|
<li><%= error.full_message %></li>
|
||
|
<% end %>
|
||
|
</ul>
|
||
|
</div>
|
||
|
<% end %>
|
||
|
|
||
|
<div class="actions">
|
||
|
<%= form.submit %>
|
||
|
</div>
|
||
|
<% end %>
|