Module: Kaminari::Helpers::Link
Overview
Tag that contains a link
Instance Method Summary collapse
-
#page ⇒ Object
target page number.
-
#to_s(locals = {}) ⇒ Object
:nodoc:.
-
#url ⇒ Object
the link’s href.
Instance Method Details
#page ⇒ Object
target page number
35 36 37 |
# File 'lib/kaminari/helpers/tags.rb', line 35 def page raise 'Override page with the actual page value to be a Page.' end |
#to_s(locals = {}) ⇒ Object
:nodoc:
42 43 44 |
# File 'lib/kaminari/helpers/tags.rb', line 42 def to_s(locals = {}) #:nodoc: super locals.merge(:url => url) end |
#url ⇒ Object
the link’s href
39 40 41 |
# File 'lib/kaminari/helpers/tags.rb', line 39 def url page_url_for page end |