Rails Polymorphic Association with multiple associations on the same model
- by Matt Rogish
My question is essentially the same as this one:
http://stackoverflow.com/questions/1168047/polymorphic-association-with-multiple-associations-on-the-same-model
However, the proposed/accepted solution does not work, as illustrated by a commenter later.
I have a Photo class that is used all over my app. A post can have a single photo. However, I…