Module: Kaminari::Helpers::Link

Included in:
FirstPage, LastPage, NextPage, Page, PrevPage
Defined in:
lib/kaminari/helpers/tags.rb

Overview

Tag that contains a link

Instance Method Summary collapse

Instance Method Details

#pageObject

target page number



75
76
77
# File 'lib/kaminari/helpers/tags.rb', line 75

def page
  raise 'Override page with the actual page value to be a Page.'
end

#to_s(locals = {}) ⇒ Object

:nodoc:



82
83
84
85
# File 'lib/kaminari/helpers/tags.rb', line 82

def to_s(locals = {}) #:nodoc:
  locals[:url] = url
  super locals
end

#urlObject

the link’s href



79
80
81
# File 'lib/kaminari/helpers/tags.rb', line 79

def url
  page_url_for page
end