class RKit::Pagination::Base::Page
Attributes
base[RW]
page[RW]
Public Class Methods
new(base, page: page)
click to toggle source
# File lib/r_kit/pagination/base/page.rb, line 5 def initialize base, page: page @base = base @page = page end
Public Instance Methods
disabled_link_to_page(name = page)
click to toggle source
# File lib/r_kit/pagination/base/page.rb, line 30 def disabled_link_to_page name = page view.content_tag :span, name, class: :'btn-disabled' end
Also aliased as: page_tag
link_to_page(name = page)
click to toggle source
# File lib/r_kit/pagination/base/page.rb, line 26 def link_to_page name = page view.link_to name, view.url_for(page: page), class: :btn end
page_tag(name = page)
click to toggle source
# File lib/r_kit/pagination/base/page.rb, line 21 def page_tag name = page link_to_page name end