Module: Kaminari::Helpers::Link

Includes:
Page, Renderable
Included in:
NextLink, PageLink, PrevLink
Defined in:
lib/kaminari/helpers/tags.rb

Overview

Tag that contains a link

Instance Method Summary collapse

Methods included from Page

#page

Methods included from Renderable

included

Instance Method Details

#to_s(locals = {}) ⇒ Object

:nodoc:



182
183
184
# File 'lib/kaminari/helpers/tags.rb', line 182

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

#urlObject

the link’s href



179
180
181
# File 'lib/kaminari/helpers/tags.rb', line 179

def url
  page_url_for page
end