# How to populate form dropdown with 2nd item of model

**URL:** <https://www.ruby-forum.com/t/how-to-populate-form-dropdown-with-2nd-item-of-model/162165>\
**Category:** Rails\
**Created:** [March 6, 2009, 11:33am UTC](https://www.ruby-forum.com/t/how-to-populate-form-dropdown-with-2nd-item-of-model/162165 "2009-03-06T11:33:58Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![ChrisYo](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/c/58f4c7/32.png) [@ChrisYo](https://www.ruby-forum.com/u/ChrisYo)\
**Post date:** [March 6, 2009, 11:33am UTC](https://www.ruby-forum.com/t/how-to-populate-form-dropdown-with-2nd-item-of-model/162165/1 "2009-03-06T11:33:58Z")

</div>

I’m trying to create a dropdown list that’s populated from a model but  
which has the 2nd item in the model as the default selection. This is  
possible.

Here’s the model snippet.  
PROPERTY\_TYPES = [[‘Choose’, ‘’],  
[‘Residential’, ‘Residential’],  
[‘Commercial’, ‘Commercial’]]

Here’s the form snippet  
\<%= f.select :property\_type, Lead::PROPERTY\_TYPES, :style =\> ‘width:  
100px;’ %\>

Is there a way to have the form default to “Residential” but still  
allow the user to select either?

Thanks
