ReePrime
Polymorphic Associations in Many to Many Associations

Hosted by Dailymotion. For legal issues report at the Copyright Center, report us on DMC, or use the Instant Removal tool.

Polymorphic Associations in Many to Many Associations

T
teachmetocode

188 Views • Jun 03, 2011

Description

Polymorphic associations in Ruby on Rails are pretty simple. Many to Many are simple as well. Putting them together is a little less straightforward. This trick will get you to the point where you can at least get the list of the associated objects.