Sign in through GitHub

Please read for an updated status on RailsCasts:

Learn more or hide this

Polymorphic Association (revised)

#154 Polymorphic Association (revised)

May 19, 2012 | 11 minutes | Active Record, Routing
A polymorphic association allows a model to belong_to different types of other models. Here I show how to make a single comment model belong to articles, photos, and events.