# Non model array and html select tag

**URL:** <https://www.ruby-forum.com/t/non-model-array-and-html-select-tag/186878>\
**Category:** Rails\
**Created:** [April 13, 2010, 6:24pm UTC](https://www.ruby-forum.com/t/non-model-array-and-html-select-tag/186878 "2010-04-13T18:24:44Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![kevid](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/k/e480ec/32.png) [@kevid](https://www.ruby-forum.com/u/kevid)\
**Post date:** [April 13, 2010, 6:24pm UTC](https://www.ruby-forum.com/t/non-model-array-and-html-select-tag/186878/1 "2010-04-13T18:24:44Z")

</div>

hi all,

I want to populate the options of a html tag with the elements of an  
array (not from a model)

say; arr= [‘has’, ‘have’, ‘give’, ‘get’]

i can’t figure out how i can achieve this. any suggesstion is  
appreciate.

---

<div class="post-metadata">

**Author:** ![kevid](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/k/e480ec/32.png) [@kevid](https://www.ruby-forum.com/u/kevid)\
**Post date:** [April 13, 2010, 9:25pm UTC](https://www.ruby-forum.com/t/non-model-array-and-html-select-tag/186878/2 "2010-04-13T21:25:04Z")

</div>

On 13 April 2010 17:23, kevid [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:

> hi all,
> 
> I want to populate the options of a html tag with the elements of an  
> array (not from a model)
> 
> say; arr= [‘has’, ‘have’, ‘give’, ‘get’]
> 
> i can’t figure out how i can achieve this. any suggesstion is  
> appreciate.

I don’t understand what you are trying to do with the array. Please  
give an example of the html output you are attempting to produce from  
the array.

Colin
