I have a searchbox to search for products. Each product has a title and is tagged with multiple tags.
I want to be able to search for products by title or tag. In othe
In your controller, the action that displays the search results could look something like this (where :q is your query string from the search box):
def results @products = Product.where("title LIKE ?", "%#{params[:q]}%") \ | Product.tagged_with("%#{params[:q]}%") end