How to specify limit and offset in array in rails?
You should use ary[start, length] → new_ary or nil
method.
..returns a subarray starting at the start index and continuing for length elements,
userposts[10, 15]
userposts.drop(15).first(10)
will help you