amatsuda/kaminari — pull request #543 by bradley219 (2014-04-14 07:13:35+00:00)
Title: Add optional :use_page_one_param option for paginate() helper method

Added an optional parameter that can be passed to the paginate() helper that will force the navigation links to use the page=1 parameter instead of not including the page parameter at all. For most implementations, the default behavior works well. But if page 1 is not the default page when the parameter is not present, navigation to page 1 doesn't work. This small edit seems to do the trick. I'm using it like this in my current implementation:

`<%= paginate audit_transactions, use_page_one_param: true %>`