Hello, I'm trying to modificate the acts_as_taggable_on pluggin, so when you search various tags (Eg: User.tagged_with("fish, cat", :on => :animals), it looks for users with BOTH tags, not just one of them.
I have edited the file acts_as_taggable_on.rb and I have changed the line: "conditions << tags.map { |t| sanitize_sql(["#{tags_alias}.name LIKE ?", t]) }.join(" OR ")" with ""conditions << tags.map { |t| sanitize_sql(["#{tags_alias}.name LIKE ?", t]) }.join(" AND ")". but when I execute the search, the sql sentence that is executed is the same than before. I just restarted the console after doing the changes, do I have to do something else so the changes take effect? (I installed the plugin through GemPlugins) Or maybe I'm editing the wrong line?...if someone has done this before please correct me if I'm wrong! Thanks! --~--~---------~--~----~------------~-------~--~----~ 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 rubyonrails-talk@googlegroups.com To unsubscribe from this group, send email to rubyonrails-talk+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---