blob: 6d7aff3d33c56d87021213ac8a6f73a8499e0493 (
plain) (
tree)
|
|
<%= form_with model: @machine do |form| %>
<div>
<%= form.label :name %><br>
<%= form.text_field :name %>
<% @machine.errors.full_messages_for(:name).each do |message| %>
<div><%= message %></div>
<% end %>
</div>
<div>
<%= form.label :edition %><br>
<%= form.text_field :edition %>
<% @machine.errors.full_messages_for(:edition).each do |message| %>
<div><%= message %></div>
<% end %>
</div>
<div>
<%= form.submit %>
</div>
<% end %>
|