On Thu, Feb 25, 2010 at 10:45 AM, Alex Moreno <alejandro.moreno / tdo.es> wro=
te:
>
> Thanks a lot for your answer.
>
> The problem is that map doesn=B4t add commas, i get:
>
> title OR description LIKE ? AND title OR description LIKE ?
> %pullmantur%%test%
>
> and i need
>
> title OR description LIKE ? AND title OR description LIKE ?
> %pullmantur%,%test%

queryArray.map { |e| "%#{e}%" }.join(",")

Jesus.