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 Action View Form Helpers — Ruby on Rails Guides or Parametrised to the max - Space Vatican

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