I’m using Rails 3 and I’d like to move some controller files from app/controllers to app/controllers/a-subdirectory. I don’t want to namespace those controllers and they don’t correspond to nested resources. It is only to have a more organized file structure.
When I try to articles_controller to app/controllers/a-subdirectory and call a related routing path helper I get the error ActionController::RoutingError: uninitialized constant ArticlesController.
It there a way to tell Rails to look up the controller files recursively in app/controllers?
Finally could do by simply adding
app/controllers/a-subdirectoryto theautoload_paths: