I am trying to query OR WHERE in an act-as-taggable-on request, for example ...
Business.tagged_with(params[:query], :any => true)
But I would also like to execute at the same time or_where, like this ...
Business.tagged_with(params[:query], :any => true).or_where('name LIKE ?', "%#{params[:query]}%")
This obviously does not work, since the or_where method does not exist, but does anyone know how to do this correctly?
In short, I'm trying to match any tags or company name. Thank you
source share