<%= simple_form_for(@item) do |f| %> <%= f.input :name %> <%= f.input :category_id, :as => :token, :token_url => token_categories_path %> <%= f.submit %> <% end %> <%= link_to "Listing", items_path %>