<%= form_for Item.new, url: items_path, remote: true do |form| %>

Add Item

<%= select_tag "category", options_from_collection_for_select(ItemCategory.all, "id", "name") %> <%= form.text_field :name %> <%= form.text_area :desc, class: "description", :rows => 5 %> <%= form.text_field :link, class: "link" %> <%= form.submit "Add Item", class: "addItem", id: "addItem" %> <% end %>