How would you generate a drop-down menu that allows the user to select from a collection of product names?
<select name="product_id"> <%= @products.each do |product| %> <option value="<%= product.id %>"/> <% end %></select>
<%= collection_select(@products) %>
<%= select_tag(@products) %>
<%= collection_select(:product, :product_id, Product.all, :id, :name) %>