<h1>New category</h1> 
<% form_for(@category) do |f| %> 
<%= render :partial => 'form', :locals => { :f => f } %> 
  <p> 
    <%= f.submit "Create" %> 
  </p> 
<% end %> 
<%= link_to 'Back', categories_path %> 