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

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

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