# Mistaking with polymorphic associations?!

**URL:** <https://www.ruby-forum.com/t/mistaking-with-polymorphic-associations/150293>\
**Category:** Rails\
**Created:** [October 7, 2008, 12:31am UTC](https://www.ruby-forum.com/t/mistaking-with-polymorphic-associations/150293 "2008-10-07T00:31:16Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![lz-coelho](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/l/8c91f0/32.png) [@lz-coelho](https://www.ruby-forum.com/u/lz-coelho)\
**Post date:** [October 7, 2008, 12:31am UTC](https://www.ruby-forum.com/t/mistaking-with-polymorphic-associations/150293/1 "2008-10-07T00:31:16Z")

</div>

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.
