我会的
map.root :controller => "dashboard", :action => "index"
map.dashboard "/dashboard", :controller => "dashboard", :action => "index"
map.connect "/dashboard/:action", :controller => "dashboard", :action => "index"
#standard routes
map.connect ':controller/:action/:id'
map.connect ':controller/:action/:id.:format'
或者你可以让它更标准
#special case
map.root :controller => "dashboard", :action => "index"
#general case
map.connect ":controller", :action => "index"
map.connect ":controller/:action"
#standard routes
map.connect ':controller/:action/:id'
map.connect ':controller/:action/:id.:format'