-
Notifications
You must be signed in to change notification settings - Fork 1.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Using limit and offset in addition to page #1032
Comments
Well that probably is not going to work that way because kaminari uses
Note that this works best if offset is a mulitple of limit. BTW all of this can be found in the wiki. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
@document_texts = Texts.where(active: true).reorder(created_at: :asc).limit(x).offset(y).page(params[:page])
I would like to offset my records and then limit the total number of records that can be shown with something similar to the above query. Would anybody have suggestions?
The text was updated successfully, but these errors were encountered: