Hi Marnen,

Thanks for sticking with me and sorry for not yet getting it.

Am I not doing what you say with the following in projects/show?

<%= link_to 'Create Subproject', new_project_path, :parent =>
@project.id %>

And should I not be able to retrieve the value in projects/new with
the following?

<%= debug :parent %>

s.

On Aug 7, 7:03 am, Marnen Laibow-Koser <rails-mailing-l...@andreas-
s.net> wrote:
> 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-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
-~----------~----~----~----~------~----~------~--~---

Reply via email to