search for: general_set

Displaying 1 result from an estimated 1 matches for "general_set".

2006 Jan 06
3
Single table inheritance - HowTo?
...ault '''', `updated_on` datetime default NULL, `comments` char(255) default NULL, PRIMARY KEY (`id`) ) ENGINE=MyISAM DEFAULT CHARSET=utf8; And a row with a type = ''General'', and name = ''front-page'' Then I have a setting.rb model, and also general_setting.rb and user_setting.rb, where I only have: class <TYPE>Setting < Setting end So, if I do General.find_by_name(''front-page''), I expected to get the value of the corresponding row, instead I get a nil object. What could I possibly be doing wrong? Thanks! Ivan V.