<%= form_with(model: email) do |form| %> <% if email.errors.any? %>

<%= pluralize(email.errors.count, "error") %> prohibited this email from being saved:

<% end %>
<%= form.submit %>
<% end %>