I would like to split my routes in rails 4 application. For rails 3 the question has been answered a few times like:
What would be the correct way to do this in rails 4 + how to get control over the order the routes get loaded?
Suggested from the rails 3 questions:
application.rb
config.paths['config/routes'] = Dir["config/routes/*.rb"]
Fails with:
See Question&Answers more detail:os/Users/jordan/.rvm/gems/ruby-2.0.0-head@books/gems/railties-4.0.0/lib/rails/application/routes_reloader.rb:10:in `rescue in execute_if_updated': Rails::Application::RoutesReloader#execute_if_updated delegated to updater.execute_if_updated, but updater is nil:
@route_sets=[#]> (RuntimeError)