Will_paginate urls and AJAX calls


#1

I am using will_paginate to paginate my site. I also have a
link_to_remote in my view that will toggle view modes (from list to
icon view). My will_paginate code works fine until I click on my
link_to_remote. At that point my will_paginate code (which is in the
partial that is updated in the link_to_remote) is broken.

i.e. the link changes from /documents?page=1 to /documents/toggle_view?
page=1

Here are some code snippets:
http://pastie.org/462034

Any help on this would be great.

Thanks,
trv


#2

Hi
Can you try like

http://www.ruby-forum.com/topic/134632#726021

Sijo