<%= form_for :product do |f| %> <%= f.label :product_name, "Product name" %> <%= f.text_field :product_name, required: true %> <%= f.submit "Save" %> <% end %>
<%= form_for :product do |f| %> <%= f.label :product_name, "Product name" %> <%= f.text_field :product_name, required: true %> <%= f.submit "Save" %> <% end %>