%= form_with(model: email) do |form| %>
<% if email.errors.any? %>
<%= pluralize(email.errors.count, "error") %> prohibited this email from being saved:
<% email.errors.each do |error| %>
- <%= error.full_message %>
<% end %>
<% end %>
<%= form.submit %>
<% end %>