# Select

**URL:** <https://www.ruby-forum.com/t/select/125788>\
**Category:** Rails\
**Created:** [January 12, 2008, 1:21am UTC](https://www.ruby-forum.com/t/select/125788 "2008-01-12T01:21:46Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![rnew](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/r/9dc877/32.png) [@rnew](https://www.ruby-forum.com/u/rnew)\
**Post date:** [January 12, 2008, 1:21am UTC](https://www.ruby-forum.com/t/select/125788/1 "2008-01-12T01:21:46Z")

</div>

I’m trying to work through a simple tutorial on rails

The tutorial calls for adding the following:

\<%= select (“cruncher”, “”, {‘red’ =\> ‘red’, ‘green’ =\> ‘green’,  
‘blue’ =\> ‘blue’}, {}, {:multiple =\> true, :size =\> 3 })%\>

to produce:  
…

however the code produces (note the duplicate array declarations):  
…

– RoR 2.01

Thanks for any help.

Rick

---

<div class="post-metadata">

**Author:** ![rnew](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/r/9dc877/32.png) [@rnew](https://www.ruby-forum.com/u/rnew)\
**Post date:** [January 13, 2008, 6:18pm UTC](https://www.ruby-forum.com/t/select/125788/2 "2008-01-13T18:18:04Z")

</div>

On 1/11/08, rnew [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:

> however the code produces (note the duplicate array declarations):  
> …

See if this helps:

[http://destiney.com/blog/rubyonrails-select-helper](http://destiney.com/blog/rubyonrails-select-helper)

–  
Greg D.  
[http://destiney.com/](http://destiney.com/)

---

<div class="post-metadata">

**Author:** ![rnew](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/r/9dc877/32.png) [@rnew](https://www.ruby-forum.com/u/rnew)\
**Post date:** [January 14, 2008, 10:51pm UTC](https://www.ruby-forum.com/t/select/125788/3 "2008-01-14T22:51:07Z")

</div>

Thanks, I’ll give it a try.
