Whenever I use regular form for and have an attribute list containing
an array all goes fine and it results in parameters like:
{“some_attributes”=>[{“title”=>“first_title”, “text” => “text1”},
{“title”=>“second_title”, “text”=>“text2”}]}
However whenever I submit the same form with remote_form_for then it
generates the following array:
{“some_attributes”=>[{“title”=>“first_title”},
{“title”=>“second_title”}, {“text”=>“text1”}, {“text”=>“text2”}]}
Anyone know of a way to fix this so the remote_form_for submits the
same parameter list as the regular form_for?
Thanks.
I have the same problem when using an observe_form, have you come up
with any solution on this?
Michael wrote:
Whenever I use regular form for and have an attribute list containing
an array all goes fine and it results in parameters like:
{“some_attributes”=>[{“title”=>“first_title”, “text” => “text1”},
{“title”=>“second_title”, “text”=>“text2”}]}
However whenever I submit the same form with remote_form_for then it
generates the following array:
{“some_attributes”=>[{“title”=>“first_title”},
{“title”=>“second_title”}, {“text”=>“text1”}, {“text”=>“text2”}]}
Anyone know of a way to fix this so the remote_form_for submits the
same parameter list as the regular form_for?
Thanks.