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:
parent
f93231e6e7
commit
c449e2cebc
1 changed files with 2 additions and 0 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Reference in a new issue