/ Published in: Ruby
This function (intended to be an application or view helper) creates a pager bar useful for navigating many pages. It shows the first, last, current, nearby, and halfway-to-end pages. It looks like this (where the current page is 11):
< 1 ... 5 ... 10 11 12 ... 14 15 >
The pagerBar function takes two parameters: a RoR paginator, and an anchor that will be attached to all the links.
< 1 ... 5 ... 10 11 12 ... 14 15 >
The pagerBar function takes two parameters: a RoR paginator, and an anchor that will be attached to all the links.