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/.