3: 4: <b>Category: </b> 5: <select id="item_category_id" name="item[category_id]"> 6: <%= options_from_collection_for_select @categories, "id", "category", @product.category_id %> 7: </select> 8: </p> 9:
Lurlay, Patrick wrote:> 3: > 4: <b>Category: </b> > 5: <select id="item_category_id" name="item[category_id]"> > 6: <%= options_from_collection_for_select @categories, "id", > "category", @product.category_id %> > 7: </select> > 8: </p> > 9:Try @product.category. -Adam -- Posted via http://www.ruby-forum.com/.