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



45
46
47
# File 'lib/kaminari/helpers/tags.rb', line 45

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

#to_s(locals = {}) ⇒ Object

:nodoc:



52
53
54
# File 'lib/kaminari/helpers/tags.rb', line 52

def to_s(locals = {}) #:nodoc:
  super locals.merge(:url => url)
end

#urlObject

the link’s href



49
50
51
# File 'lib/kaminari/helpers/tags.rb', line 49

def url
  page_url_for page
end