I get my selections options from this yml file like,
controller
@site_id=“id”+current_hierarchy.site_id.to_s
@get_config=YAML.load(File.open("#{PATH_IM}/config/template.yml")) @get_config == Hash
@sites=@get_config[@site_id].values
@merge= @sites
view
<%= select_tag “templates”,
options_for_select(@merge) %>
my question here is how can I create selection like
work_sheet_csv1
Name1
Name2
I want to get the values from first column and the names from second
column.