Reputation: 2807
I would like to offset my records and then limit the total number of records that will be queried with something similar to the below.
Would anybody have suggestions how to go about it?
@document_texts = Texts.where(active: true).reorder(created_at: :asc).limit(x).offset(y).page(params[:page])
Upvotes: 1
Views: 1475