Class: WillPaginate::Sinatra::LinkRenderer

### Home Classes Methods

### In Files

- lib/will_paginate/view_helpers/sinatra.rb

### Parent

WillPaginate::ViewHelpers::LinkRenderer

### Methods

- #build_query
- #request
- #url

### Class/Module Index

Quicksearch

- WillPaginate
- WillPaginate::ActionView
- WillPaginate::ActionView::LinkRenderer
- WillPaginate::ActiveRecord
- WillPaginate::ActiveRecord::BaseMethods
- WillPaginate::ActiveRecord::Pagination
- WillPaginate::ActiveRecord::RelationMethods
- WillPaginate::Collection
- WillPaginate::CollectionMethods
- WillPaginate::DataMapper
- WillPaginate::DataMapper::CollectionMethods
- WillPaginate::DataMapper::Pagination
- WillPaginate::Deprecation
- WillPaginate::Deprecation::Hash
- WillPaginate::I18n
- WillPaginate::InvalidPage
- WillPaginate::Merb
- WillPaginate::Merb::LinkRenderer
- WillPaginate::PageNumber
- WillPaginate::PerPage
- WillPaginate::PerPage::Inheritance
- WillPaginate::Railtie
- WillPaginate::Railtie::ControllerRescuePatch
- WillPaginate::Railtie::ShowExceptionsPatch
- WillPaginate::SequelMethods
- WillPaginate::Sinatra
- WillPaginate::Sinatra::Helpers
- WillPaginate::Sinatra::LinkRenderer
- WillPaginate::ViewHelpers
- WillPaginate::ViewHelpers::LinkRenderer
- WillPaginate::ViewHelpers::LinkRendererBase
- Array
- Object

No matching classes.

# WillPaginate::Sinatra::LinkRenderer

### Protected Instance Methods

build_query(params) click to toggle source

    # File lib/will_paginate/view_helpers/sinatra.rb, line 30
    def build_query(params)
      Rack::Utils.build_nested_query params
    end

request() click to toggle source

    # File lib/will_paginate/view_helpers/sinatra.rb, line 26
    def request
      @template.request
    end

url(page) click to toggle source

    # File lib/will_paginate/view_helpers/sinatra.rb, line 19
    def url(page)
      str = File.join(request.script_name.to_s, request.path_info)
      params = request.GET.merge(param_name.to_s => page.to_s)
      params.update @options[:params] if @options[:params]
      str << '?' << build_query(params)
    end

[Validate]

Generated with the Darkfish Rdoc Generator 2.