..." />

Query for all users except for users with an ID in this collection?

I havent used Rails 3 but its unsafe to use User. Where("id in #{exclude_ids}? ") On Rails 2.

X you do it as follows User. Find(:all, :conditions => "id NOT IN (?)", 1,2,3) Rails 3. X docs railsapi.com/doc/rails-v3.0.0.beta.3/cla....

I havent used Rails 3 but its unsafe to use User. Where("id in #{exclude_ids}? ").

On Rails 2. X you do it as follows User. Find(:all, :conditions => "id NOT IN (?)", 1,2,3) Rails 3.

X docs railsapi.com/doc/rails-v3.0.0.beta.3/cla....

You can use the all() method instead of find(:all, …). – James Conroy-Finn May 30 at 18:20.

I am not confirm but you can Try this User. Where("id not in #{exclude_ids}? ").

Where("id in #{exclude_ids}?"). On Rails 2.

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions