Your are here: Home // Posts Tagged With inheritance

003 RC Single Table Inheritance (STI)

Podcast: Play in new window | Download Single Table Inheritance is a slightly advanced topic in Ruby on Rails. It stems from class inheritance, which is a core Object Oriented Programming principle. In Ruby, if you inherit one class from another, you use the ‘<’ operator. Here’s an example: class Truck < Car end In Rails, this gets tricky because when inheriting a Model,... 
Copyright © 2009 Rails Coach. All rights reserved.
Designed by Theme Junkie. Powered by WordPress.