I’m starting learning ruby on rails and i have a question that maybe is
about ruby but anyway.
I have a table with 2 columns type and value and i would like to create
select that had like options all the values but for certain types they
should appear as the text.
I want to achieve something like:
Select the option:private public Group tkk Group Rails Group The great school User testi1 User testi2 User testi3
In my example i would like that all the lines that is related to users
groups has the type in the select text.
Can i use select or should be select_tag and also how can i create this
default options if they come from the database and i have to do some
“coding” before put into the select?
Any tips will be appreciated.
Marcos MÃ¼ller Lopes Fonseca
Arquiteto da InformaÃ§Ã£o - MAV Tecnologia
Gerente de projetos - UFMG InformÃ¡tica Jr.
Sistemas de InformaÃ§Ã£o - UFMG
[email protected] / 87553132