Tuesday, September 18, 2012

Re: [Rails] id NOT IN (?)

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

--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
 
 

0 Comments:

Post a Comment

Subscribe to Post Comments [Atom]

<< Home


Real Estate