# Simple Pagination Question

**URL:** <https://www.ruby-forum.com/t/simple-pagination-question/133737>\
**Category:** Rails\
**Created:** [April 3, 2008, 2:37am UTC](https://www.ruby-forum.com/t/simple-pagination-question/133737 "2008-04-03T02:37:00Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![bigdaddy71](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/b/bbe5ce/32.png) [@bigdaddy71](https://www.ruby-forum.com/u/bigdaddy71)\
**Post date:** [April 3, 2008, 2:37am UTC](https://www.ruby-forum.com/t/simple-pagination-question/133737/1 "2008-04-03T02:37:00Z")

</div>

Is there something I need to know in order to use a drop down list value  
as a parameter in my search? That might not have made sense. So I  
create a form with a textbox and a drop down list of countries. Both  
values are passed to the controller as parameters and I am using  
pagination to split up the results into pages. Everything works great,  
the search works and the pagination links appear at the bottom of the  
view correctly. The problem is when I click on one of the pagination  
links the page that is loaded is blank (no results).

Do I need to pass the parameters from the textbox and drop downlist  
somehow?

Thanks in advance

Chris

---

<div class="post-metadata">

**Author:** ![bigdaddy71](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/b/bbe5ce/32.png) [@bigdaddy71](https://www.ruby-forum.com/u/bigdaddy71)\
**Post date:** [April 3, 2008, 7:12am UTC](https://www.ruby-forum.com/t/simple-pagination-question/133737/2 "2008-04-03T07:12:08Z")

</div>

Could you post your controller code. That might help!!!

---

<div class="post-metadata">

**Author:** ![bigdaddy71](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/b/bbe5ce/32.png) [@bigdaddy71](https://www.ruby-forum.com/u/bigdaddy71)\
**Post date:** [April 3, 2008, 10:14am UTC](https://www.ruby-forum.com/t/simple-pagination-question/133737/3 "2008-04-03T10:14:44Z")

</div>

Yes, you do.

add them in on the pagination links, and make sure the destination  
action takes them, and uses them in the redisplay.

Julian.

Learn Ruby on Rails! CHECK OUT THE FREE VIDS (LIMITED TIME) NEW VIDEO  
(#2) OUT NOW!  
[http://sensei.zenunit.com/](http://sensei.zenunit.com/)
