# Creating selection from yml file?

**URL:** <https://www.ruby-forum.com/t/creating-selection-from-yml-file/130282>\
**Category:** Rails\
**Created:** [February 27, 2008, 2:36am UTC](https://www.ruby-forum.com/t/creating-selection-from-yml-file/130282 "2008-02-27T02:36:55Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![casid](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/c/47e85d/32.png) [@casid](https://www.ruby-forum.com/u/casid)\
**Post date:** [February 27, 2008, 2:36am UTC](https://www.ruby-forum.com/t/creating-selection-from-yml-file/130282/1 "2008-02-27T02:36:55Z")

</div>

Hello RoR developers,

I have a template.yml file.  
template:  
work\_sheet\_csv: work\_sheet\_csv  
templatename1: template\_of\_roster  
templatename2: template\_of\_roster1  
templatename3: template\_of\_roster2  
templatename4: template\_of\_roster3

I want to create selection with the value of template names. when I  
clean one of it, the selection value should be effected. how should I  
create method and how to call it in selection??  
could you help me how to write it.
