How would I get all the values in the form input fields below by iterating through ans[n] where n = 1...3 in a controller?
<input type="text" name="ans[1]" value="Test 1">
<input type="text" name="ans[2]" value="Test 2">
<input type="text" name="ans[3]" value="Test 3">
params[:ans]should be an array