# How to redirect to list properly?

**URL:** <https://www.ruby-forum.com/t/how-to-redirect-to-list-properly/113227>\
**Category:** Rails\
**Created:** [August 29, 2007, 1:06am UTC](https://www.ruby-forum.com/t/how-to-redirect-to-list-properly/113227 "2007-08-29T01:06:21Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![ssk](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/82dd89/32.png) [@ssk](https://www.ruby-forum.com/u/ssk)\
**Post date:** [August 29, 2007, 1:06am UTC](https://www.ruby-forum.com/t/how-to-redirect-to-list-properly/113227/1 "2007-08-29T01:06:21Z")

</div>

Hi,

There’s a ‘list’ page with filtering and sorting options.  
You can go to ‘new’ page by clicking ‘new’ link on the ‘list’ page.  
When an item is created with the data the user submit, he/she will be  
redirected to the ‘list’ page with the original filtering and sorting  
options.

To do that, you can

1. remember the options in the session (this is not a perfect solution)
2. pass the options to the ‘new’ page. (this works but parameter-passing  
bothers me.)

Is there a better(or more elegant) solution?

Thanks.

Sam
