I have a table of around 100 Users and I also have an array of user ids. What I wanted to do is show all users who are not a part of this array of user ids. When I do someth
Use ruby's active record wrapper:
User.where.not(id: [])
This handles the empty array issue for you.