Category <%= collection_select("product", "category_id", @categories, :id, :title ) %> or a new category <%= text_field 'category', 'title' %>