search for: ingredient_id

Displaying 2 results from an estimated 2 matches for "ingredient_id".

2006 Jan 02
0
Many to Many relationship - trys to destroy twice??
...ocessing AdminController#delete_i (for 127.0.0.1 at 2006-01-02 22:14:12) [POST] Parameters: {"pid"=>"2", "commit"=>"Delete", "action"=>"delete_i", "controller"=>"admin", "ingredient"=>{"ingredient_id"=>"64", "position"=>"8"}} Ingredients_Product Load (0.002288) SELECT * FROM ingredients_products WHERE (product_id = ''2'' and ingredient_id = ''64'' and position = ''8'') LIMIT 1 SQL (0.000563) BEGI...
2006 Nov 14
3
messed-up habtm relationship
...nd I have a join table dishes_ingredients now when i access my_dish.ingredients, i get a list of what looks like Ingredient objects, but the but they don''t have the right attributes: #<Ingredient:0x29d3544 @readonly=true, @attributes={"name"=>"Chicken", "ingredient_id"=>"36", "dish_id"=>"1", "id"=>"1"}> The join table''s columns ''dish_id'' and ''ingredient_id'' show up, and the id is the id of the row in the join table, not the one of the ingredient (Ch...