Your 'codes' smell (http://en.wikipedia.org/wiki/Code_smell) more like 
tags to me...

You should look at has_many_polymorphs, specifically the tagging 
feature.

I use it to great effect, allowing a search based on ALL or ANY of a set 
of entered tags.
-- 
Posted via http://www.ruby-forum.com/.

-- 
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Talk" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en.

Reply via email to