search for: usericon

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

Did you mean: usercon
2006 Jun 28
0
ActiveRecord mapping users to icons
...ted as their "primary" icon. End of day I want a ''primary_icon'' attribute in the User class that is either nil, or references a single icon in the user_icons table. In the User class I want something logically like: has_one :primary_icon, :class_name => ''UserIcon'' where this gets its info from a single add''l column in the users table that links to the appropriate icon record in the user_icons table, but can''t figure out how to structure things this way. Another approach would be to add a flag to the user_icons table to note for...