# Select list

**URL:** <https://www.ruby-forum.com/t/select-list/126646>\
**Category:** Rails\
**Created:** [January 20, 2008, 11:02pm UTC](https://www.ruby-forum.com/t/select-list/126646 "2008-01-20T23:02:28Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![nicpon](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/n/4491bb/32.png) [@nicpon](https://www.ruby-forum.com/u/nicpon)\
**Post date:** [January 20, 2008, 11:02pm UTC](https://www.ruby-forum.com/t/select-list/126646/1 "2008-01-20T23:02:28Z")

</div>

Helo,  
I want to create a select list that will switch between types of data  
from the database. Basically, the select list will have few options that  
I want them to serve as a condition in the sql statement.  
My question is how can I pass selected value from the list into the  
controller and keep that value selected?  
THanks

---

<div class="post-metadata">

**Author:** ![nicpon](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/n/4491bb/32.png) [@nicpon](https://www.ruby-forum.com/u/nicpon)\
**Post date:** [January 21, 2008, 9:11am UTC](https://www.ruby-forum.com/t/select-list/126646/2 "2008-01-21T09:11:43Z")

</div>

Repeat after me “Form Helpers”
