Ruby vind array van gebruikers ID

User.where might be what you want and then the postgres syntax for finding stuff that matches an array. I can never quite remember.