packaging controllers in Rails

Hey all,

    I am just starting to learn rails, and I was curious to know if it is possible to set up folder systems within the apps/controller area? Our application is beginning to become quite large, and we would really like to package/organize controllers together in separate folders for maintainability...

Thanks,

Mitch Gillespie

Sorry.. just to provide an example this is what we're looking to accomplish..

app/controllers/questions app/controllers/sections app/controllers/answers app/controllers/questions/question1_controller.rb app/controllers/questions/question2_controller.rb ... and so on..

We're positive the change will be in the routes.rb file.. but were just not 100% sure how to accomplish it.

Thanks,

Sorry.. just to provide an example this is what we're looking to accomplish..

app/controllers/questions app/controllers/sections app/controllers/answers app/controllers/questions/question1_controller.rb app/controllers/questions/question2_controller.rb ... and so on..

You can do stuff like

app/controllers/foo app/controllers/foo/question_controller.rb app/controllers/bar app/controllers/foo/answer_controller.rb

And in answer_controller.rb you define Foo::AnswerController You'll get this automatically if you run ruby script/generate foo/ answer

Fred