AND FIXED!
I followed http://jellofishi.com/blog/?cat=3

I created app/helpers/remote_link_renderer.rb

class RemoteLinkRenderer < WillPaginate::LinkRenderer
  def prepare(collection, options, template)
    @remote = options.delete(:remote) || {}
    super
  end

  protected
  def page_link(page, text, attributes = {})
    @template.link_to_remote(text, {:url => url_for(page), :method => 
:post}.merge(@remote))
  end
end

And then in the environment.rb I added, after the Initializer block:

require "will_paginate"
WillPaginate::ViewHelpers.pagination_options[:renderer] = 
'RemoteLinkRenderer'

My will_paginate has become:
<%= will_paginate dictated_exams,  :params => {:date => date },
    :remote => { :update => 'filter_counts'}  %>

And now it all works..
-- 
Posted via http://www.ruby-forum.com/.

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Talk" group.
To post to this group, send email to rubyonrails-talk@googlegroups.com
To unsubscribe from this group, send email to 
rubyonrails-talk+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to