<%= form_for :product do |f| %> <%= f.label :product_name, "Product name" %> <%= f.text_field :product_name %> <%= f.label :description, "Description" %> <%= f.text_field :description %> <%= f.label :available, "In stock" %> <%= f.check_box :available %> <%= f.submit "Save" %> <% end %>