Ruby on Rails
PolymorphicAssociations (Version #15)

Edge Rails (pre 1.1) has a new option for associations that allow multiple models to have associations with a shared single model. It’s almost like STI, but for associations (I think).

Until there is official documentation on the matter, this page will serve as a collecting point for links and scraps of knowledge about using polymorphic associations.

Here are some links to get you started:

Edge Rails (pre 1.1) has a new option for associations that allow multiple models to have associations with a shared single model. It’s almost like STI, but for associations (I think).

Until there is official documentation on the matter, this page will serve as a collecting point for links and scraps of knowledge about using polymorphic associations.

Here are some links to get you started: