# Remote form for, Form.serialize and parameter arrays

**URL:** <https://www.ruby-forum.com/t/remote-form-for-form-serialize-and-parameter-arrays/125763>\
**Category:** Rails\
**Created:** [January 11, 2008, 9:01pm UTC](https://www.ruby-forum.com/t/remote-form-for-form-serialize-and-parameter-arrays/125763 "2008-01-11T21:01:58Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![michael](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/m/4bbf92/32.png) [@michael](https://www.ruby-forum.com/u/michael)\
**Post date:** [January 11, 2008, 9:01pm UTC](https://www.ruby-forum.com/t/remote-form-for-form-serialize-and-parameter-arrays/125763/1 "2008-01-11T21:01:58Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![michael](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/m/4bbf92/32.png) [@michael](https://www.ruby-forum.com/u/michael)\
**Post date:** [April 21, 2008, 1:05pm UTC](https://www.ruby-forum.com/t/remote-form-for-form-serialize-and-parameter-arrays/125763/2 "2008-04-21T13:05:03Z")

</div>

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.
