Skip to content
Find file
Fetching contributors…
Cannot retrieve contributors at this time
17 lines (12 sloc) 285 Bytes

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.