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,