# Resizing pagination per\_page on existing results

**URL:** <https://www.ruby-forum.com/t/resizing-pagination-per-page-on-existing-results/92080>\
**Category:** Rails\
**Created:** [April 15, 2007, 8:41pm UTC](https://www.ruby-forum.com/t/resizing-pagination-per-page-on-existing-results/92080 "2007-04-15T20:41:47Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![scott](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/3e96dc/32.png) [@scott](https://www.ruby-forum.com/u/scott)\
**Post date:** [April 15, 2007, 8:41pm UTC](https://www.ruby-forum.com/t/resizing-pagination-per-page-on-existing-results/92080/1 "2007-04-15T20:41:47Z")

</div>

Is there an easy way to resize a pagination result? Effectively, I  
want to have a dropdown on a results page that allows the user to  
resize the number of results per page. Currently, I have something  
like:

```
  @search_results_pages, @search_results = paginate(:products,
                               :conditions => ["category_id = ?",

```

params[:category\_id]],  
:per\_page =\> 10)

Is there a way I can augment the per\_page on existing results if I say  
wanted to change the 10 per page to 25 per page?

Thanks,

Scott
