When Associations go Polymorphic: An Introduction

Eugene Grady
Nov 7 · 4 min read

When developing the next Facebook (FACEBOOK?), Kickstarter or even the backend for your local orthodontist’s office, the relationships between our models in Rails sometimes have to interact in unconventional ways. Sometimes, they have to go POLY — MORPHIC!

But alas, do not worry, because once you master the polymorphic relationship within rails, you’re new app will be so dynamic…

Keep the story going. Sign up for an extra free read.

You've completed your member preview for this month, but when you sign up for a free Medium account, you get one more story.
Already have an account? Sign in

Welcome to a place where words matter. On Medium, smart voices and original ideas take center stage - with no ads in sight. Watch
Follow all the topics you care about, and we’ll deliver the best stories for you to your homepage and inbox. Explore
Get unlimited access to the best stories on Medium — and support writers while you’re at it. Just $5/month. Upgrade