Re: Help with nested models and fields_for

Mark Reginald James
Sun, 21 Dec 2008 16:42:18 -0000

Marnen Laibow-Koser wrote:

>> It can''t handle more that one level below an array parameter.
>
> Are you sure?  I''ve seen a few examples on the Web which imply
that
> this should work.

I can confirm that it''s broken in Rails 2.0.2, and fixed
in Rails >= 2.1.0.

> By "array parameter", do you specifically mean one with a numeric
> subscript, so that object[foo][bar][baz] would work as expected,
> although objects[][foo][bar][baz] would not?  If so, that would
> explain some -- not all -- of the examples I''ve seen.

objects[][foo] works, but objects[][foo][bar] did not.

--
Rails Wheels - Find Plugins, List & Sell Plugins - http://railswheels.com

--~--~---------~--~----~------------~-------~--~----~
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
rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
To unsubscribe from this group, send email to
rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org