class Kaminari::Helpers::Paginator
The container tag
Attributes
options[R]
Public Instance Methods
each_page() { |page_proxy| ... }
click to toggle source
enumerate each page providing PageProxy
object as the block parameter
# File lib/kaminari/helpers/tags.rb, line 87 def each_page 1.upto(@options[:num_pages]) do |i| @page = i yield PageProxy.new(options, i, @last) end end
render(&block)
click to toggle source
render given block as a view template
# File lib/kaminari/helpers/tags.rb, line 81 def render(&block) instance_eval &block if @options[:num_pages] > 1 @output_buffer end