From c449e2cebcfddc581760503d8815fa2377c5de77 Mon Sep 17 00:00:00 2001 From: Alex Koppel Date: Fri, 10 Jun 2016 17:20:50 -0500 Subject: [PATCH] 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! --- README.rdoc | 2 ++ 1 file changed, 2 insertions(+) diff --git a/README.rdoc b/README.rdoc index 4eca020..8298294 100644 --- a/README.rdoc +++ b/README.rdoc @@ -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)