Will_paginate and render :update

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

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

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.