Anyone have experience making an acts_as_tree object RESTful-ly
accessible? I''ve got
map.resources :terms do |terms|
models.resources :terms, :name_prefix => ''child_''
end
I want to generate a link for creating a child. In show.rhtml,
corresponding to GET /terms/id, I tried to using <%= link_to "Create
Child", child_new_term_path %> and I get the following error:
ActionView::TemplateError (child_new_term_url failed to generate from
{:controller=>"terms",
:action=>"new"}, expected: {:controller=>"terms",
:action=>"new"},
diff: {})
Thanks
--~--~---------~--~----~------------~-------~--~----~
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
rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
To unsubscribe from this group, send email to
rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk
-~----------~----~----~----~------~----~------~--~---