Forum: Ruby on Rails Nested Resources: How to view all children resources

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
803ad415efcdcbf09b1addeb319650d7?d=identicon&s=25 Adam Akhtar (thegeezer3)
on 2009-02-07 04:59
I want to be able to view all the children resources in a nested
resoruce scheme.

Ie. if i have projects and tasks I want to be able to view every single
task like this /tasks
rather than
/project/1/task....

Can anybody help?
D93ae163042e0a937941e0ba4d8ed5d7?d=identicon&s=25 Eric (Guest)
on 2009-02-07 06:09
(Received via mailing list)
you just need to create an un-nested route for tasks:

map.resources :tasks

outside of the nested routes block. they won't conflict.

On Feb 6, 7:59 pm, Adam Akhtar <rails-mailing-l...@andreas-s.net>
This topic is locked and can not be replied to.