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
76 77 78 |
# File 'lib/kaminari/helpers/tags.rb', line 76 def page raise 'Override page with the actual page value to be a Page.' end |
#to_s(locals = {}) ⇒ Object
:nodoc:
83 84 85 86 |
# File 'lib/kaminari/helpers/tags.rb', line 83 def to_s(locals = {}) #:nodoc: locals[:url] = url super locals end |
#url ⇒ Object
the link’s href
80 81 82 |
# File 'lib/kaminari/helpers/tags.rb', line 80 def url page_url_for page end |