Ruby on Rails: Acts as Taggable searching like terms

I'd like to search tags that has similar terms. For instance if there's a tag that has two words, christmas shopping, I'd like to search all that has similar tags with christmas or shopping.

right now I have this

@tag = Boom.tagged_with(params[:tag], :any => true, :wild => true)

Is this possible? With just SQL there's such as thing with %or LIKE but can this be applied somehow with acts as taggable?



Like we discussed upper in comments: if you make params[:tag].split(" ") it will be working.

Need Your Help

Can't download html page source

c# webclient web-scraping

using (var client = new WebClient())

“Identifier not declared” in Verilog. Anyone know why I'm getting this?


Been working for a while on figuring this problem out, but brief searches produced nothing and Verilog syntax guides don't seem to provide any useful information.

About UNIX Resources Network

Original, collect and organize Developers related documents, information and materials, contains jQuery, Html, CSS, MySQL, .NET, ASP.NET, SQL, objective-c, iPhone, Ruby on Rails, C, SQL Server, Ruby, Arrays, Regex, ASP.NET MVC, WPF, XML, Ajax, DataBase, and so on.