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

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

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