Class | ActionController::Pagination::Paginator |
In: |
lib/action_controller/pagination.rb
|
Parent: | Object |
A class representing a paginator for an Active Record collection.
controller | [R] | |
item_count | [R] | |
items_per_page | [R] |
Creates a new Paginator on the given controller for a set of items of size item_count and having items_per_page items per page. Raises ArgumentError if items_per_page is out of bounds (i.e., less than or equal to zero). The page CGI parameter for links defaults to "page" and can be overridden with page_parameter.