[Solar-talk] new model: has_one through
Rodrigo Moraes
rodrigo.moraes at gmail.com
Mon May 28 15:04:26 PDT 2007
On 5/28/07, Paul M Jones wrote:
> I wonder, can you tell if a "has_one through" relationship is the
> same thing as a "polymorphic association" in Rails?
>
> <http://rails.raaum.org/activerecord.html#polymorphic-associations>
It doesn't seem to be the same, because the "polymorphic association"
makes sense. :)
I guess all I needed was a fetch() to find the right layout in a
collection. So in the end, I'm using a many to many relationship and
then loading what I want using a helper method.
-- rodrigo
More information about the solar-talk
mailing list