Rails Console find users by array of ids

前端 未结 6 1475
清歌不尽
清歌不尽 2020-12-23 19:25

So I have an array of user ids. Is there a way in rails console to query all of these user\'s with the array

something like

ids = [1, 2, 3, 4]

users         


        
6条回答
提交回复
热议问题