Rails - Find Condition of two model fields
- by ChrisWesAllen
I'm trying to find the results of a model where it queries as the result of two conditions.
I have a search tag that looks for
Model.find(:all, :conditions => "name LIKE params[search]")
but I'd like for the search to find all records where "name LIKE params[search] or description LIKE params[search] .
Is there any way to add an OR into…