Thanks. I'll try awesome_nested_set. Iian seemed to be suggesting params[:parent] went into projects/new, but I'm struggling to get a value to projects/new (via :parents) in the first place, I assume for the reasons you've given.
Are you saying that params[:parent] goes into link_to to help me pass the value to projects/new? s. On Aug 7, 1:34 am, Marnen Laibow-Koser <rails-mailing-l...@andreas- s.net> wrote: > steven_noblewrote: > > [...] > > > However, in the subsequent projects/new view, where I have <%= > > debug :parent %>, I get: > > > --- :parent > > > not > > > --- 21 > > Well, of course. :parent is a literal symbol, not a variable name. It > will never equal anything other than :parent. I think you're looking for > params[:parent], as Ilan already said. > > BTW, you probably want aweome_nested_set, not acts_as_tree. > > Best, > -- > Marnen Laibow-Koserhttp://www.marnen.org > [email protected] > -- > 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 [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 -~----------~----~----~----~------~----~------~--~---

