redbox + will_paginate

Hiya,

I'm trying to use Will_paginate with the RedBox plugin but having problems making it go to the next page of the collection.

http://blog.craigambrose.com/articles/2006/09/22/redbox-release-2

as far as i can see will_paginate does not support any kind of :remote ajax call so each page click can update the div element.

has anyone managed to get will_paginate working within a redbox dialog?

appreciate it,

i found one way to get around it by creating a new remote_link_renderer helper and then coupling it to the will_paginate call...

class RemoteLinkRenderer < WillPaginate::LinkRenderer   def initialize(collection, options, template)     @remote = options.delete(:remote) || {}     super   end   def page_link_or_span(page, span_class = 'current', text = nil)     text ||= page.to_s     if page and page != current_page       @template.link_to_remote(text, {:url => url_options(page), :method => :get}.merge(@remote))     else       @template.content_tag :span, text, :class => span_class     end   end end

but still didnt solve it moving to the next page of results...

<%= will_paginate @photos, :renderer => 'RemoteLinkRenderer'%>