Yeah!
map.resources :content_nodes do |content_nodes|
content_nodes.resources :children,
:controller=>''content_nodes''
end
On Dec 3, 2007 11:34 AM, goodieboy
<goodieBoy-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:
> 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
>
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---