Resource routes for acts_as_tree - help

Hi,

I'd like to be able to define the children of a node as a resource like so:

/content_nodes/1/children /content_nodes/1/children.js /content_nodes/1/children.xml

etc., but can't figure this out. Usually, the nested route is a model but in this case children is something setup by acts_as_tree. Is this at all possible?

Thank you

Yeah!

map.resources :content_nodes do |content_nodes| content_nodes.resources :children, :controller=>‘content_nodes’ end