Class | ActionController::Pagination::Paginator::Page |
In: |
lib/action_controller/pagination.rb
|
Parent: | Object |
A class representing a single page in a paginator.
number | -> | to_i |
number | [R] | |
paginator | [R] |
Creates a new Page for the given paginator with the index number. If number is not in the range of valid page numbers or is not a number at all, it defaults to 1.
Compares two Page objects and returns true when they represent the same page (i.e., their paginators are the same and they have the same page number).
Returns a new Page object representing the page just after this page, or nil if this is the last page.
Returns a new Page object representing the page just before this page, or nil if this is the first page.