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
You can use range definition for scoped:
User.find(1) # returns the object for ID = 1 User.find([1]) User.find(1, 2, 9) # returns an array for objects with IDs in (1, 2, 9) User.find([1, 2, 9]) User.scoped(:conditions => { :id => 1..9})