Forum: Ruby on Rails Simple select .. which helper ?

Announcement (2017-05-07): is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see and for other Rails- und Ruby-related community platforms.
Ee0293412faca21e4ebf3326ed9d5f8c?d=identicon&s=25 Kad Kerforn (kadoudal)
on 2007-06-16 19:05
I do need a simple select, but i don't know which helper to use

I need a dropdown selector with simple values from anArray = [ "0" ,
"2", "5", "10", "15", "25"]
I would like to preselect according to an index   0, 1, 2, 3, 4  (index
in the array)
and upon selection by the user, get the selected index back...

read all the doc, good examples but always related to collections...

which helper is my friend ?


This topic is locked and can not be replied to.