That''s sounding complex. You might consider using
"fields_for" to try
and get to the nesting without such a deep array stack. Look at the
API docs for "fields_for" to get an idea how you might do this.
Ultimately, what I''d do is some trial and error with a debugger in the
action so I could inspect the params hash.
-Danimal
P.S. It looks right, though. Ultimately, you''d end up with a params
hash that would have something like params[:project] => { :task =>
{ :steps => [1,2,3] } } so maybe project[task][steps][] is exactly
what you need.
On Apr 24, 12:34 am, Arshak Navruzyan <rails-mailing-l...@andreas-
s.net> wrote:> Following this example of virtual attributes I''d like to go down
another
> level
>
> http://railscasts.com/episodes/73
>
> In other words create a form that lets a user create a project which has
> multiple tasks (tasks have names) which in tern have multiple steps
> (with their own attributes)
>
> What does that look like?
>
> project[task][steps][]
>
> Thanks,
>
> Arshak
> --
> Posted viahttp://www.ruby-forum.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
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---