Ruby on rails 3: Search with multiple params?
I have a search box, and need to search through 2 parameters, "title" or "tags" using the query. I can get one parameter to work, but not two, tried 'OR', '||', ',' nothing works. 

Whats the answer ?  

Original code: `Book.where("title LIKE ?" , "%#{query}%")` 
     
What I need: `Book.where("title LIKE ?" , "%#{query}%" OR "tags LIKE ?" , "%#{query}%")` 
Ruby on rails 3: Search with multiple params?
===

I have a search box, and need to search through 2 parameters, "title" or "tags" using the query. I can get one parameter to work, but not two, tried 'OR', '||', ',' nothing works. 

Whats the answer ?  

Original code: `Book.where("title LIKE ?" , "%#{query}%")` 
     
What I need: `Book.where("title LIKE ?" , "%#{query}%" OR "tags LIKE ?" , "%#{query}%")` 