# Will\_paginate and render :update

**URL:** <https://www.ruby-forum.com/t/will-paginate-and-render-update/120860>\
**Category:** Rails\
**Created:** [November 21, 2007, 8:11am UTC](https://www.ruby-forum.com/t/will-paginate-and-render-update/120860 "2007-11-21T08:11:06Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![cbinckly](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/c/b9e5f3/32.png) [@cbinckly](https://www.ruby-forum.com/u/cbinckly)\
**Post date:** [November 21, 2007, 8:11am UTC](https://www.ruby-forum.com/t/will-paginate-and-render-update/120860/1 "2007-11-21T08:11:06Z")

</div>

Hi,

I am trying to update a paginated collection of photo objects after a  
form\_tag\_remote call. I have a partial that renders the collection, and  
then executes will\_paginate on the updated collection.

When the page is first rendered, and I look at the source, and the  
pagination links appear correct: i.e. [2](https://www.ruby-forum.com/photos?page=2)

However, once I have added an object to the collection, when will  
paginate is called on the updated collection, the links have this  
format:

[2](https://www.ruby-forum.com/photos/[action%20called%20by%20form_remote_tag]?[serialized%20params%0Ahash%20for%20form_remote_tag%20call])

I assume that this is because will\_paginate uses the name of the action  
to determine which to call? Why does it insert the old params hash into  
the link…?

Thank you.
