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