# View name of multiselect in list instead of view

**URL:** <https://www.ruby-forum.com/t/view-name-of-multiselect-in-list-instead-of-view/92923>\
**Category:** Rails\
**Created:** [April 25, 2007, 6:25pm UTC](https://www.ruby-forum.com/t/view-name-of-multiselect-in-list-instead-of-view/92923 "2007-04-25T18:25:39Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![bullring](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/b/a6a055/32.png) [@bullring](https://www.ruby-forum.com/u/bullring)\
**Post date:** [April 25, 2007, 6:25pm UTC](https://www.ruby-forum.com/t/view-name-of-multiselect-in-list-instead-of-view/92923/1 "2007-04-25T18:25:39Z")

</div>

In my model i have:

PRIORITY\_TYPES = [  
['Trivial", “1”],  
[“Minor”, “2”],  
[“Major”, “3”]  
]

in my new entry form i have:

\<%= form.select(:status, Project::STATUS\_TYPES, :prompt =\> “Select  
Status”) %\>

in my view/project/list i have :  
\<%= h(project.status) %\>

but when my controller lists the project details it only shows the  
“id” of the select instead of the name in the model. How do i resolve  
the name to id relationship for the view?

any help you have would be great,  
Thank you,
