How to use input control in loop

Hi everyone,

i am using a <input type="text"> in a for loop. but not getting the
data as loop.
also in controller how i will fatch the data of that loop.

long version: take a peak at http://guides.rubyonrails.org/form_helpers.html
or http://www.spacevatican.org/2008/7/18/parametrised-to-the-max

short version: Parameters need to be named appropriately (append [] to
the parameter name) for rails to handle them as arrays (rather than
ignoring duplicates)

Fred