# Why is select helpers not using options in add\_default\_name\_

**URL:** <https://www.ruby-forum.com/t/why-is-select-helpers-not-using-options-in-add-default-name/65540>\
**Category:** Rails\
**Created:** [August 18, 2006, 11:21pm UTC](https://www.ruby-forum.com/t/why-is-select-helpers-not-using-options-in-add-default-name/65540 "2006-08-18T23:21:30Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![adammontgomery](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/a/ce7236/32.png) [@adammontgomery](https://www.ruby-forum.com/u/adammontgomery)\
**Post date:** [August 18, 2006, 11:21pm UTC](https://www.ruby-forum.com/t/why-is-select-helpers-not-using-options-in-add-default-name/65540/1 "2006-08-18T23:21:30Z")

</div>

Hello,

In actionpack/lib/action\_view/helpers/form\_options\_helper.rb (trunk) @  
~296 in the

def to\_select\_tag(choices, options, html\_options)

function, why is there

add\_default\_name\_and\_id(html\_options)

instead of

add\_default\_name\_and\_id(options)

This is inconsistent with the non-select helpers where  
add\_default\_name\_and\_id always use options. Is there a special reason  
for this?

Furthermore, non-select helpers seem to always “stringify” all options  
and html\_options before referencing them, but select helpers do not. Why  
not?

- Adam
