Re: [Rails] Getting information from xls file to show on drop down list in rails

2013-03-17 Thread Dheeraj Kumar
Use an iterator. A loop, if you prefer that term. Google ruby loops to get an overview of different constructs ruby supports. You really should go back to a ruby book On Mar 17, 2013 7:54 PM, "NN Dodhia" wrote: > Hey i have an excel file with 2 columns, and i want to get them so that a > user ca

[Rails] Getting information from xls file to show on drop down list in rails

2013-03-17 Thread NN Dodhia
Hey i have an excel file with 2 columns, and i want to get them so that a user can select one of the rows in a drop down list or as an auto complete form, any ideas on how this is done, i know i can type out all the selections using f.input :collection ["1","2".."100"] but there are about 1