title: Refactoring a large routes.rb file in rails 4
body: <p>I'm in the process of upgrading a rails 3 app to rails 4.0.1.</p>
  
  <p>In my rails 3 app I have the following code in the my <code>application.rb</code> to use multiple route files.</p>
  
  <blockquote>
    <p>config.paths["config/routes"] += Dir[Rails.root.join('config',
    'routes', '*.rb').to_s]</p>
  </blockquote>
  
  <p>but that throws an exception when I try to use the same thing in rails 4.</p>
  
  <p>Any tips?</p>