Polymorphism with Many-to-Many Associations - A Teach Me To Code Tutorial

Polymorphic associations are very simple, as are many-to-many associations. When you blend the two, it's not nearly as simple. Since there isn't a working build-in mechanism for many-to-many polymorphic associations. Here's a quick demo of what happens if you try to set up a traditional has\_many :through association with a polymorphic association. I also show how to set things up so you can get the associated objects.[Download](https://traffic.libsyn.com/tmtc/polymorphicmanytomany.m4v) 101.3 MB[Download (iPod & iPhone)](https://traffic.libsyn.com/tmtc/polymorphicmanytomany_-_iPhone.m4v) 45.5 MB

Sign up for the Newsletter

Join our newsletter and get updates in your inbox. We won’t spam you and we respect your privacy.