I am using observe_field on a number of multi-selects and checkbox form
elements whose values would normally come in as arrays on a normal
(non-Ajax) form post.
I understand that by using the :with => ‘name’ I will get name=value in
the request.raw_post however if the field I am submitting has mutliple
values and the name is of the form ‘name’, I get
name=[‘value1,value2,value3’]. I need to get
name=[‘name1’,‘name2’,‘name3’] just as if I had submitted the entire
- am not doing something right,
correct form so it is parsed properly by the Rails POST processing, or
- must write code to split on ‘,’ in my controller or helper.
Am I missing something or is there a better way?