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''%>
--
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-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
To unsubscribe from this group, send email to
rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---