From: Brian Candler Date: 2010-02-25T18:33:12+09:00 Subject: Re: find params Alex Moreno wrote: > ['title OR description LIKE ? AND title OR description like ?', > "%#{queryArray[0]}%", "%#{"queryArray[1]"}%", "%#{"queryArray[2]"}%", > .... ] ['....', queryArray.map { |e| "%#{e}%" }] Are you sure your SQL syntax is correct though? I would have thought it should be: '(title LIKE ? OR description LIKE ?) AND (title LIKE ? OR description LIKE ?)' -- Posted via http://www.ruby-forum.com/.