%= form_with model: wine do |form| %>
<%= form.label :name %>
<%= form.text_field :name %>
<% wine.errors.full_messages_for(:name).each do |message| %>
<%= message %>
<% end %>
<%= form.label :year %>
<%= form.text_field :year %>
<% wine.errors.full_messages_for(:year).each do |message| %>
<%= message %>
<% end %>
<%= form.label :variety %>
<%= form.text_field :variety %>
<%= form.label :notes %>
<%= form.text_field :notes %>
<%= form.submit %>
<% end %>