# How to get value of select box for button\_to?

**URL:** <https://www.ruby-forum.com/t/how-to-get-value-of-select-box-for-button-to/178304>\
**Category:** Rails\
**Created:** [November 2, 2009, 3:40pm UTC](https://www.ruby-forum.com/t/how-to-get-value-of-select-box-for-button-to/178304 "2009-11-02T15:40:12Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![TJ\_Lee](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/t/a87d85/32.png) [@TJ\_Lee](https://www.ruby-forum.com/u/TJ_Lee)\
**Post date:** [November 2, 2009, 3:40pm UTC](https://www.ruby-forum.com/t/how-to-get-value-of-select-box-for-button-to/178304/1 "2009-11-02T15:40:12Z")

</div>

Hi,  
I have a select box with the following options:

Destination GoldCoast Melbourne

How do I get the value of the select box into the button\_to?  
\<%= button\_to “Search”, {:controller =\>  
“ticket”, :action=\>“search”, :depart=\>“KUL”, :arrival=\>???} %\>
