method

pagination_links

rails latest stable - Class: ActionView::Helpers::PaginationHelper

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.

pagination_links(paginator, options={}, html_options={})
public

Creates a basic HTML link bar for the given paginator. html_options are passed to link_to.

options are:

:name:the routing name for this paginator (defaults to page)
:window_size:the number of pages to show around the current page (defaults to 2)
:always_show_anchors:whether or not the first and last pages should always be shown (defaults to true)
:link_to_current_page:whether or not the current page should be linked to (defaults to false)
:params:any additional routing parameters for page URLs