That’s what rails does if two inputs have the same name: it only uses
the first one (unless the name ends with [], in which case you’ll get
an array with all the values).
undefined method `downcase’ for [“aaaaa”, “aaaa”, “”]:Array
That’s what rails does if two inputs have the same name: it only uses
the first one (unless the name ends with [], in which case you’ll get
an array with all the values).
Through Error undefined method `downcase’ for [“aaaaa”, “aaaa”,
“”]:Array
If you do this then params[:empfirstname] will be an array so you need
to handle it appropriately. I have no idea what you are doing but it
may be more appropriate to just disabled the inputs when you hide
their containing div.
Fred
This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.