module

ActionView::Helpers::PaginationHelper

rails latest stable

Module deprecated or moved

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

Provides methods for linking to ActionController::Pagination objects.

You can also build your links manually, like in this example:

<%= link_to "Previous page", { :page => paginator.current.previous } if paginator.current.previous %>

<%= link_to "Next page", { :page => paginator.current.next } if paginator.current.next %>

Constants

DEFAULT_OPTIONS = { :name => :page, :window_size => 2, :always_show_anchors => true, :link_to_current_page => false, :params => {}

Files

  • actionpack/lib/action_view/helpers/pagination_helper.rb