I have a simple form, where I set up a query that I want to browse, for example panasonic viera. This is on how I search the term in database:
P
One solution would be to break up your query into individual terms and build a set of database queries connected by OR.
OR
terms = params[:q].split query = terms.map { |term| "name like '%#{term}%'" }.join(" OR ") Product.where(query).order('price')