# Options\_for\_select helper is also mess

**URL:** <https://www.ruby-forum.com/t/options-for-select-helper-is-also-mess/103781>\
**Category:** Rails\
**Created:** [May 10, 2007, 9:11am UTC](https://www.ruby-forum.com/t/options-for-select-helper-is-also-mess/103781 "2007-05-10T09:11:39Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![kadoudal](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/k/f0a364/32.png) [@kadoudal](https://www.ruby-forum.com/u/kadoudal)\
**Post date:** [May 10, 2007, 9:11am UTC](https://www.ruby-forum.com/t/options-for-select-helper-is-also-mess/103781/1 "2007-05-10T09:11:39Z")

</div>

I am ‘trying’ to use ‘options\_for\_select’

\<%= options\_for\_select([“2”, “5”, “10”, “15”, “25”], @selected\_distance  
) %\>

which generates the html…

2 5 10 15 25

but the dropdown selection is NOT selected, first item always…  
what’s wrong ?

(OS X , Firefox)
