method

new

rails latest stable - Class: ActionController::Pagination::Paginator::Page

Method deprecated or moved

This method is deprecated or moved on the latest stable version. The last existing version (v1.2.6) is shown here.

new(paginator, number)
public

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.