Searching from a range of ids in ActiveRecord
ruby, ruby-on-rails, ruby-on-rails-3
Solution
You can use the `where` method:
User.where(id: 14000..14500)
Explanation
The `where` method here receives a hash argument in its shortened form, where the value for the `id` key is a `Range`.
Problem
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.