In my view I need to add (dynamically) text inputs and I need to get theirs values in the controller (once the user submit the corresponding form).
My inputs are:
<input type="text" name="airports_input_origin" class="airports_input_origin" id="airports_input_origin_0" size="40"/>
<input type="text" name="airports_input_origin" class="airports_input_origin" id="airports_input_origin_1" size="40"/>
etc... etc...
They all have the same 'name' attribute.... so I guessed that if I do
params[:airports_input_origin]
I'd get the array ... but I was wrong...
How can I get those values?
Thx!