method
pagination_links
rails latest stable - Class:
ActionView::Helpers::PaginationHelper
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 |