Displaying 1 result from an estimated 1 matches for "c46540a3".
2006 Apr 05
4
How to do IN(?) query?
I''m trying to do an IN query, where I have an array of user objects
imaginatively named ''users'':
:conditions=>["user_id IN (?)", users.collect{|u| u.id }.join('','')]
this ends up with:
... IN(''1,2,3'') ...
Obviously I want this to be:
... IN(1,2,3) ...
or even
... IN(''1'', ''2'',