Displaying 1 result from an estimated 1 matches for "user_icons_users".
2006 Jun 28
0
ActiveRecord mapping users to icons
...e to make sure we always clear all of a user''s other icon primary
flags when setting a new one, and there is risk of things getting into
a bad state where a user has more than one primary icon marked in the
database.
Yet another approach is to have another table, e.g. users_user_icons
(or user_icons_users), mapping the user id to the appropriate
user_icon id. Not sure how to structure this with ActiveRecord
statements either.
It''s confusing how to structure this, with my head not yet fully
wrapped around ActiveRecord as this is my first RoR test app
toe-dipping, since normally you'...