On 7 April 2010 08:57, Sean E. <[email protected]> wrote: > So I've got a model called Item and one of its properties is called > "tags". It's just string that is a simple comma separated list of tags > associated with the item. I'm trying to do two things. First create a > list of items with the most common tags (the top ten or so) and second > allow the user to click on a link that will show all the items with the > selected tag.
Stop and refactor that into a "has_many :tags"/"belongs_to :item" association. Your life will be much easier. -- 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.

