3 ms·
Rails allows you to split them up: MyApp::Application.routes.draw do load 'config/routes/more_routes.rb' end I agree that routes files have a tendency
by tyre 13y ago
Rails allows you to split them up:
MyApp::Application.routes.draw do
load 'config/routes/more_routes.rb'
end
I agree that routes files have a tendency to turn nightmarish (combination of low rate of change once set and you almost never have a reason to read them.) At the same time, if you're routes are getting intimidating it may be time to break out application into separate concerns.
- stormbrew 13y ago> At the same time, if you're routes are getting intimidating it may be time to break out application into separate concerns. I agree. But at the same time, not a lot of frameworks out there really help you make your app more modular. Rails certainly didn't until relatively recently (late rails 2, big improvements in rails 3).
- deleted 13y ago[deleted]