I'm trying to query an OR WHERE into an acts-as-taggable-on query, like so...
Business.tagged_with(params[:query], :any => true)
But I'd also like to perform at the same time an or_where like this...
Business.tagged_with(params[:query], :any => true).or_where('name LIKE ?', "%#{params[:query]}%")
This obviously doesn't work as there is no or_where method but would someone know how to perform this correctly?
In short, I'm trying to find a match against any tags OR business name. Thanks.