Topic: Is "class" considered an invalid database column name?
I recently started messing around with Rails, and one of the first apps I tried writing had a database column called 'class'. Now when I try to output the thing in a view, like <%= modelvar.class %> it displays the name of the Model rather than the value of the database column, not surprisingly.
Is this name considered invalid, or is there a better way to access it?
Last edited by tsigo (2006-07-10 11:16:11)