Re: id NOT IN (?)

daynthan kabilan
Tue, 18 Sep 2012 07:19:58 -0000

Dear Walter

sorry for the delay reply.

am using rails 2.3.11  am using your condition  by

 @users = User.find(:all, :conditions=>["id NOT IN (?)",
@issues.map(&:id)])

that time also i got both output

and i got the correct output for this condition.

 :conditions=>["id not in (?)",issues]

and thanks for your reply.

Regards,
Daya.S