Module WillPaginate::ViewHelpers
In: lib/will_paginate/view_helpers/base.rb
lib/will_paginate/view_helpers/action_view.rb
lib/will_paginate/view_helpers/link_renderer.rb
lib/will_paginate/view_helpers/link_renderer_base.rb
lib/will_paginate/view_helpers.rb

Will Paginate view helpers

The main view helper is will_paginate. It renders the pagination links for the given collection. The helper itself is lightweight and serves only as a wrapper around LinkRenderer instantiation; the renderer then does all the hard work of generating the HTML.

Read more in WillPaginate::ViewHelpers::Base

Methods

Classes and Modules

Module WillPaginate::ViewHelpers::ActionView
Module WillPaginate::ViewHelpers::Base
Class WillPaginate::ViewHelpers::LinkRenderer
Class WillPaginate::ViewHelpers::LinkRendererBase

Public Class methods

Global options for helpers

Options for pagination helpers are optional and get their default values from the WillPaginate::ViewHelpers.pagination_options hash. You can write to this hash to override default options on the global level:

  WillPaginate::ViewHelpers.pagination_options[:previous_label] = 'Previous page'

By putting this into your environment.rb you can easily translate link texts to previous and next pages, as well as override some other defaults to your liking.

[Validate]