Paginator

Posted 2007-03-27…

Current Version Gem Name Documentation
1.0.9 paginator View

Paginator is a simple pagination class that provides a generic interface suitable for use in any Ruby program. It’s a popular alternative to Rails’ built-in pagination, but can be used in any Ruby project.

Paginator doesn‘t make any assumptions as to how data is retrieved; you just have to provide it with the total number of objects and a way to pull a specific set of objects based on the offset and number of objects per page.