recursive rails nested resources


i have rails concentration digest supervision where there digest assign models. digest have tasks, nonetheless assign also have tasks, ad infinitum.



using nested resources, have /projects/1/tasks, /projects/1/tasks/new, /projects/1/tasks/3/edit etc.



however, paint recursive inlet tasks restfully? i don't wish another turn deep, maybe following do:



map.resources :tasks |t|
t.resources :tasks
end


that give me following urls:



/tasks/3/tasks/new   
/tasks/3/tasks/45/edit


or maybe comes an sole assign i only /tasks/45/edit



is reasonable design?



cam



Comments

Popular posts from this blog

list macos calm editors formula editors

how i practical urls indicate .aspx pages asp.net deployed an iis? (preferably but iis)

jaxb - xjc - reworking generated typesafe enum category members