I’m trying to update multiple users attributes all at once. Is there a way in rails to find multiple users by email? for example User.find_by_email(joe@example.com, tom@example.com) I write this in the heroku console and it does not work. I know in rails the find method accepts an array of numbers for the id I was hoping the same for email.
Share
User.find_all_by_email( ["joe@example.com", "tom@example.com"] )