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 specifics ids.
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 specifics ids.
Use the
where
method:You can use range definition for scoped:
You can do it like this too:
Try this also
Ex -