Undefined method `category_id'


#1

3:
4: Category:
5:
6: <%= options_from_collection_for_select @categories, “id”,
“category”, @product.category_id %>
7:
8:


9:

#2

Lurlay, Patrick wrote:

3:
4: Category:
5:
6: <%= options_from_collection_for_select @categories, “id”,
“category”, @product.category_id %>
7:
8:


9:

Try @product.category.

-Adam