1
0
Fork 0
mirror of https://github.com/kaminari/kaminari.git synced 2022-11-09 13:44:37 -05:00

Note page(0) and page(1) return the same results

I didn't realize that pagination starts at 1 rather than 0, which led to some time debugging this afternoon. If you're amenable to a small change to the readme, noting that point might be useful for others.

Thanks for the great gem!
This commit is contained in:
Alex Koppel 2016-06-10 17:20:50 -05:00 committed by GitHub
parent f93231e6e7
commit c449e2cebc

View file

@ -59,6 +59,8 @@ Then bundle:
To fetch the 7th page of users (default +per_page+ is 25)
User.page(7)
Note: pagination starts at page 1, not at page 0. (page(0) will return the same results as page(1).)
* the +per+ scope
To show a lot more users per each page (change the +per_page+ value)