vierundsechzig-gM/Ye1E23mwN+BqQ9rBEUg@public.gmane.org
2007-Jul-14 06:53 UTC
scaffold_resource und acts_as_tree
Routing nested resources on Models with has_many is very straightforward eg. Project->Iteration->WorkItem can be mapped with: map.resources :projects do |projects| projects.resources :iterations do |iterations| iterations.resources :workItems end end resulting in pleasant urls like http://localhost:3000/projects/1/iterations/3/workitems - but how can you map resources with acts_as_tree and an arbitrary nesting?! eg. Treenode->Treenode->Treenode->... I''m trying to achieve convenient urls roughly like: http://localhost:3000/treenodes/1/children3/schildren/4/children/7 Has anyone ever tried to map acts_as_tree ressources in a RESful manner?! Thx for any tips! stf --~--~---------~--~----~------------~-------~--~----~ 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?hl=en -~----------~----~----~----~------~----~------~--~---