if I want :controller => ''folder/controller'', I can''t use: map.resource ''folder/controller'' Are nested controllers not considered ''RESTful practice'' and therefore not supported?
> if I want :controller => ''folder/controller'', I can''t use: > > map.resource ''folder/controller'' > > Are nested controllers not considered ''RESTful practice'' and > therefore not supported?That''s one of the last things on the todo list. They should work. Someone who needs nested controllers, please make it work ;) -- David Heinemeier Hansson http://www.loudthinking.com -- Broadcasting Brain http://www.basecamphq.com -- Online project management http://www.backpackit.com -- Personal information manager http://www.rubyonrails.com -- Web-application framework
David Heinemeier Hansson wrote:>> if I want :controller => ''folder/controller'', I can''t use: >> >> map.resource ''folder/controller'' >> >> Are nested controllers not considered ''RESTful practice'' and >> therefore not supported? > > That''s one of the last things on the todo list. They should work. > Someone who needs nested controllers, please make it work ;)Actually, you *should* be able to do: map.resources :whatever_the_resources_are, :controller => "folder/controller" That just overrides the guessing that rails does, and forces it to use the given controller for the given resource. - Jamis
On Aug 5, 2006, at 9:25 PM, Jamis Buck wrote: David Heinemeier Hansson wrote:>> if I want :controller => ''folder/controller'', I can''t use: >> >> map.resource ''folder/controller'' >> >> Are nested controllers not considered ''RESTful practice'' and >> therefore not supported? > That''s one of the last things on the todo list. They should work. > Someone who needs nested controllers, please make it work ;)Actually, you *should* be able to do: map.resources :whatever_the_resources_are, :controller => "folder/ controller" That just overrides the guessing that rails does, and forces it to use the given controller for the given resource. - Jamis Thanks Jamis... that''s exactly what I was looking for.