December 2011
1 tag
Using separate tables in Rails with model...
Suppose there is a situation where you have two separate tables with the exact same structure, and you want to use separate models in Rails. Obviously, you want shared functionality from the models (order, scopes etc.), so the most logical way to go about it seems to be:
class Vehicle < ActiveRecord::Base
end
class Car < Vehicle
end
The problem however, is that is triggers Single Table...
I salute the women who said, “Hey, wait a minute. Maybe having a vagina doesn’t...
– Users Know: STFU About What Women Want
The idea is to write simple, yet machine parseable documentation such that you...
– Knyle Style Sheets — Warpspire