-
Hello, I have an ActiveRecord query that has This is the query:
And I use it like this in my controller:
Do I have to pass an extra param to ScreenshotsThank you. |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 3 replies
-
I don't get what is wrong: from the screenshot: 137 pages means that you have 13 pages of 10 items (130 count so far) and the last page with 7 items, for a correct total count of 137, and a correct total number of pages of 14. What should it be instead? Or you mean that the count in your data should be 134 and not 137? In that case you might want to pass the right count. See Custom count for custom scopes |
Beta Was this translation helpful? Give feedback.
-
@ddnexus Passing the |
Beta Was this translation helpful? Give feedback.
-
😱 You never said that you have 10 records in your query. You wrote 134 and 137.
You are the one that knows whether you required it or not. Please, read the arel doc. (BTW, |
Beta Was this translation helpful? Give feedback.
I don't get what is wrong: from the screenshot: 137 pages means that you have 13 pages of 10 items (130 count so far) and the last page with 7 items, for a correct total count of 137, and a correct total number of pages of 14.
What should it be instead?
Or you mean that the count in your data should be 134 and not 137?
In that case you might want to pass the right count. See Custom count for custom scopes