Class RemoteLinkRenderer
In: lib/remote_link_renderer.rb
Parent: WillPaginate::LinkRenderer

Methods

page_link   prepare  

Public Instance methods

[Source]

   # File lib/remote_link_renderer.rb, line 2
2:   def prepare(collection, options, template)
3:     @remote = options.delete(:remote) || {}
4:     if options[:params]
5:       @selected = options[:params][:selected]
6:     end
7:     super
8:   end

Protected Instance methods

[Source]

    # File lib/remote_link_renderer.rb, line 11
11:   def page_link(page, text, attributes = {})
12:     @template.link_to_remote(text, {:update => @selected, :url => url_for(page), :method => :get}.merge(@remote), attributes)
13:   end

[Validate]