Hello,

I'm trying to solve a problem without success. Look at:

I have 3 models (Recipe, Comments and User)

an Recipe has many Comments
an User has many Comments
an User has many Recipes

I tried to implement this using polymorphic associations with the Comment
model. But the expected behavior needs to be: When a new comment is created
i need to refer it in Recipe and Comments. To clarify i need to be able to
search for one Recipe and use something like Recipe.comments to find
comments!

Any suggestions?

Regards,
Grabber.

--~--~---------~--~----~------------~-------~--~----~
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