Now .find and .find_by_id methods are deprecated in rails 4. So instead we can use below:
Comment.where(id: [2, 3, 5])
It will work even if some of the ids don't exist. This works in the
user.comments.where(id: avoided_ids_array)
Also for excluding ID's
Comment.where.not(id: [2, 3, 5])