Nested Resources: How to view all children resources


#1

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?


#2

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 A. removed_email_address@domain.invalid