我想在rails 4应用程序中分割我的路线.对于导轨3,这个问题已经回答了几次,如:
> How to split routes.rb into smaller files
> Splitting Routes File Into Multiple Files
在rails 4中做什么正确的方法怎么控制路由加载的顺序?
建议从rails 3问题:
application.rb中
config.paths['config/routes'] = Dir["config/routes/*.rb"]
失败:
/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)