title: Aliasing a namespaced route in Rails
body: <p>Given the following routes.rb file:</p>
  
  <pre><code># Add Admin section routes
   map.namespace :admin do |admin|
     admin.resources :admin_users
     admin.resources :admin_user_sessions, :as =&gt; :sessions
     admin.resources :dashboard
  
     # Authentication Elements
     admin.login '/login',  :controller =&gt; 'admin_user_sessions', :action =&gt; 'new'    
     admin.logout '/logout', :controller =&gt; 'admin_user_sessions', :action =&gt; 'destroy'
  
     # Default is login page for admin_users
     admin.root :controller =&gt; 'admin_user_sessions', :action =&gt; 'new'
  end
  </code></pre>
  
  <p>Is it possible to alias the 'admin' section to something else without having to change every redirection and link_to in the application? The main reason is that it's something I'd like to be configurable on the fly and hopefully make it also a bit less easy to guess.</p>