Ruby find array of users 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.