# SELECTION LIST with local variable

**URL:** <https://www.ruby-forum.com/t/selection-list-with-local-variable/87343>\
**Category:** Rails\
**Created:** [March 1, 2007, 10:36pm UTC](https://www.ruby-forum.com/t/selection-list-with-local-variable/87343 "2007-03-01T22:36:07Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![joep](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/87869e/32.png) [@joep](https://www.ruby-forum.com/u/joep)\
**Post date:** [March 1, 2007, 10:36pm UTC](https://www.ruby-forum.com/t/selection-list-with-local-variable/87343/1 "2007-03-01T22:36:07Z")

</div>

Hello,

Is there a way to use the Rails select list with a local variable that  
isn’t tied to any models?

Here is what I mean:

\<%= select(@name, %w{Joe Fred Arnold}) %\>

It gives this error:  
wrong number of arguments (2 for 3)

Is there a way to use the select list with a local variable? Any help  
is appreciated.
