search for: tags_to_xxx

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

2005 Dec 24
0
acts_as_taggable - adding users and normalizing tags
...ion. I can''t imagine I''m the first to think about doing this. >From a schema perspective these things both seem simple, just put the normalized tag in the tags table, and have a join table that contains a user id and the denormalized version (i.e. tags -> "swat", tags_to_XXX -> "S.W.A.T"). But, when I get to the coding part it gets a bit ugly. Optimally I''d like to: @thing.tag(user_input, :normalize => true, :user => @user) where this causes the join table (tags_XXXX) to have its user_id fk set, and populate a ''denormalized...