Class Kaminari::Helpers::Paginator
In: lib/kaminari/helpers/paginator.rb
Parent: Tag

The main container tag

Methods

Included Modules

::ActionView::Context

Classes and Modules

Class Kaminari::Helpers::Paginator::PageProxy

Public Instance methods

each_page()

Alias for each_relevant_page

enumerate each page providing PageProxy object as the block parameter Because of performance reason, this doesn‘t actually enumerate all pages but pages that are seemingly relevant to the paginator. "Relevant" pages are:

  • pages inside the left outer window plus one for showing the gap tag
  • pages inside the inner window plus one on the left plus one on the right for showing the gap tags
  • pages inside the right outer window plus one for showing the gap tag

render given block as a view template

[Validate]