I was wondering if anyone knows how to do "IN" in activerecord. Unfortunately, the sentence "IN" is rather incompatible, so I have to post here. Basically, I want to answer this question: "Give me all the college students who are in these dormitories, where the id of the dormitory is in this array [id array]." I know how to write a request, given a single hostel identifier, but I don't know how to do this, given an array of identifiers.
Any help is appreciated. I am sure that this is somewhere a reposition of the question, so I will remove it as soon as the answer / best search query is found.
ruby activerecord
Black Dynamite Apr 16 2018-12-21T00: 00Z
source share