Module: SimplePaginate::Helpers::Link

Included in:
NextPage, Page, PrevPage
Defined in:
lib/simple_paginate/helpers/tags.rb

Instance Method Summary collapse

Instance Method Details

#pageObject



47
48
49
# File 'lib/simple_paginate/helpers/tags.rb', line 47

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

#to_s(locals = {}) ⇒ Object



55
56
57
# File 'lib/simple_paginate/helpers/tags.rb', line 55

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

#urlObject



51
52
53
# File 'lib/simple_paginate/helpers/tags.rb', line 51

def url
  page_url_for(page)
end