Routing question

Routes.rb

ActionController::Routing::Routes.draw do |map|
map.namespace(:backend, :path_prefix => :admin) do |backend|
backend.resources :accounts, :collection => { :list => :any }
backend.resources :articles, :collection => { :list => :any }
backend.resources :sessions
end

map.backend ‘/admin’, :controller => ‘backend/base’, :action =>
‘index’
map.activation ‘/admin/accounts/
activate/:activation_code’, :controller => ‘backend/
accounts’, :action=>‘activate’
map.connect ‘javascripts/:action.:format’, :controller =>
‘javascripts’

map.connect ‘:controller/:action/:id’
map.connect ‘:controller/:action/:id.:format’
end

Question: How does
http://localhost:3000/admin
automatically get turned into
http://localhost:3000/admin/sessions/new
?

Nevermind – I figured it out.