method
new
rails latest stable - Class:
ActionController::Pagination::Paginator
new(controller, item_count, items_per_page, current_page=1)public
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.