Problem with will_paginate.

hiii all

i am new to ruby on rails. i am facing a problem with pagination. i have
a page
on which i have three partial and all have pagination. if i click on one
partial's next page it will update all the three partial to second page.
Please help me to solve this problem.

one way would be to only update one of your partials using ajax.

another way would be to post your code here...

MaD wrote:

one way would be to only update one of your partials using ajax.

another way would be to post your code here...

I m using ajax pagination.

well then there has to be some error in your code. look at your
targets. you have to specify the correct div/container to update. that
way only one of your partials will turn to the next page.

<%= will_paginate
@category_history,:renderer=>'RemoteLinkRenderer',:remote=>{:with=>'value',:update=>'category_history'}%>

i want to send an id with this will_paginate which i can get in
controller and check for which one div i have to update.

i don't think this will work. why don't you just specify which div to
update, depending on which pagination has been clicked (on the client
side) and make your call accordingly?