steven_noble wrote:
[...]
> 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-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
-~----------~----~----~----~------~----~------~--~---

Reply via email to