<h1>New product</h1>

<%= error_messages_for :product %>

<% form_for(:product, :url => collection_url) do |f| %>
  <p>
    <b>Name</b><br />
    <%= f.text_field :name %>
  </p>

  <p>
    <%= submit_tag "Create" %>
  </p>
<% end %>

<%= link_to 'Back', collection_url %>