<%= form_with(model: bar, local: true) do |form| %> <% if bar.errors.any? %>

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

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