i just checked it again and it looks like a form_remote_for bug,
because with a non ajax form_for params are well formed,
can someone confirm it?

On 20 sep, 18:36, jney <[EMAIL PROTECTED]> wrote:
> hi,
>
>   I just try to deal with multiples model in one form,
> using ajax to add models. but got a weird params hash.
>
> got:
> :master_model => {
>   :sub_model => [
>     { :field_1 => "1" },
>     { :field_1 => "2", :field_2 => "3" },
>     { :field_2 => "4" }
>   ]
>
> }
>
> instead of :
>
> :master_model => {
>   :sub_model => [
>     { :field_1 => "1" :field_2 => "3" },
>     { :field_1 => "2", :field_2 => "4" }
>   ]
>
> }
>
> anybody can help me?
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Talk" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to