%= form_with(model: order) do |form| %>
<% if order.errors.any? %>
<%= pluralize(order.errors.count, "error") %> prohibited this order from being saved:
<% order.errors.each do |error| %>
- <%= error.full_message %>
<% end %>
<% end %>
<%= form.label :name, style: "display: block" %>
<%= form.text_field :name %>
<%= form.submit %>
<% end %>