# Error while passing values in will\_paginate

**URL:** <https://www.ruby-forum.com/t/error-while-passing-values-in-will-paginate/166784>\
**Category:** Rails\
**Created:** [April 29, 2009, 3:50pm UTC](https://www.ruby-forum.com/t/error-while-passing-values-in-will-paginate/166784 "2009-04-29T15:50:09Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![vidhya](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/v/7feea3/32.png) [@vidhya](https://www.ruby-forum.com/u/vidhya)\
**Post date:** [April 29, 2009, 3:50pm UTC](https://www.ruby-forum.com/t/error-while-passing-values-in-will-paginate/166784/1 "2009-04-29T15:50:09Z")

</div>

Hai to All ,

```
 I am facing a problem while passing a value in will_paginate.The

```

values are not passed when moving from one page to other in pagination.

The coding is,

\<%= will\_paginate @names  
,{:territory=\>params[:territory],:area=\>params[:area],:name=\>params[:name]},:renderer  
=\> ‘RemoteLinkRenderer’ , :remote =\> {:update =\> ‘main\_div’,:pagination  
=\> ‘yes’,  
:loading=\>“document.getElementById(‘fade’).style.display=‘block’;$(‘list\_paginate\_spinner’).show();”,  
:loaded=\>“document.getElementById(‘fade’).style.display=‘none’;$(‘list\_paginate\_spinner’).hide();”}  
%\>

Thanks in Advance
