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