Searching from a range of ids in ActiveRecord

前端 未结 4 1752
爱一瞬间的悲伤
爱一瞬间的悲伤 2021-01-17 07:30

How can I do something like this in range?

User.find(14000..14500)

I need to choose a certain range of Users starting and finishing on spec

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