Class WillPaginate::LinkRenderer
In: lib/will_paginate/view_helpers.rb
Parent: Object

This class does the heavy lifting of actually building the pagination links. It is used by the will_paginate helper internally.

Methods

Attributes

gap_marker  [RW]  The gap in page links is represented by:
  <span class="gap">&hellip;</span>

Public Class methods

Public Instance methods

Returns the subset of options this instance was initialized with that represent HTML attributes for the container element of pagination links.

  • collection is a WillPaginate::Collection instance or any other object that conforms to that API
  • options are forwarded from will_paginate view helper
  • template is the reference to the template being rendered

Process it! This method returns the complete HTML string which contains pagination links. Feel free to subclass LinkRenderer and change this method as you see fit.

Protected Instance methods

Returns URL params for page_link_or_span, taking the current GET params and :params option into account.

Calculates visible page numbers using the :inner_window and :outer_window options.

Collects link items for visible page numbers.

[Validate]