Teach Me To Code » Screencasts

Single Table Inheritance – Ruby on Rails Tutorial

04.08.2011 - By Charles Max WoodPlay

Download our free app to listen on your phone

Download on the App StoreGet it on Google Play

Single Table Inheritance is a great way to handle related models that descend from the same class. The classic example is a Car class with Ford, Chevy, and Honda subclasses.

This Ruby on Rails Tutorial provides an example and explains how Rails puts all of the information in the same database table and allows you to query things from both the superclass and subclass.

Download 59.5 MB

Download (iPod and iPhone) 36.3 MB

More episodes from Teach Me To Code » Screencasts