Colin Law wrote:
> 2009/6/17 Hugues Brunelle <[email protected]>:
>> * Ingredient :
>>  def stack
>> === END ===
> @stack.products will give you an array of products then for each
> product, product.ingredients will give you an array of ingredients.
> 
> Colin

Thank you Colin, it seems to work since "#" character appear for each 
ingredient of a product. Now I must figure out how I get the 
ingredient's name. Can you give me an exemple, since 
product.ingredients.name doesn't work?
Regards,
Hugues

-- 
Posted via http://www.ruby-forum.com/.

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Talk" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to