Thanks Iian. I think the problem might be in my use of the following
in the projects/show view:
<%= link_to 'Create Subproject', new_project_path, :parent =>
@project.id %>
I have <%= debug @project.id %> in that projects/show view, which
gives me:
--- 21
However, in the subsequent projects/new view, where I have <%=
debug :parent %>, I get:
--- :parent
not
--- 21
It seems link_to is not passing the value from show action (showing
the parent project) to the new action (where I'm trying to create a
child project).
Any thoughts?
Thanks again,
Steven.
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---