I’m putting together a Rails application that will display information
from an existing database. The database has a “job” table that
contains a “type” column. I’ve successfully overridden the names of
the table and the name of the inheritance column by adding
def self.table_name() 'job' end Job.inheritance_column ='ruby_type'
to the job model, but then I’m unable to access the type field using
the same “
other fields in the .rhtml file. This always yields a value of “Job”.
I have to imagine that there’s a simple way to gain access to the
value of the type column of the table, but nothing that I’ve tried so
far has worked. If anyone has the magic incantation to do this I’d
appreciate hearing about it.
– John Kodis.