Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Tree: 7085e4147e
Fetching contributors…

Cannot retrieve contributors at this time

17 lines (12 sloc) 0.285 kB

Rails Edge: Multiple Route Files

Rails edge just got a great addition, multiple route files:

# config/routes.rb
draw :admin

# config/routes/admin.rb
namespace :admin do
  resources :posts
end

This will come handy for breaking down complex route files in large apps.

Jump to Line
Something went wrong with that request. Please try again.