Class WillPaginate::ViewHelpers::LinkRenderer
In: lib/will_paginate/view_helpers/link_renderer.rb
Parent: LinkRendererBase

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

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.

[Validate]