steven_noble wrote: > 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?
Ilan suggested using link_to 'whatever', :parent => some_parent_value . If I remember my link_to syntax correctly, any "extra" parameters in the link_to will be accessible in params. So yeah, when you click the link generated by the link_to statement, some_parent_value will be passed to the 'whatever' action as params[:parent]. Best, -- Marnen Laibow-Koser http://www.marnen.org [email protected] -- Posted via http://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 -~----------~----~----~----~------~----~------~--~---

