title: Rails Devise roots, what's the difference between namespace and authenticated?
body: <p>In a Rails 3.2 app I have two user models set up using Devise: Admin and User.</p>
  
  <p>I have an Admin-specific root page defined in my routes file.</p>
  
  <pre><code>namespace :admin do
      root :to =&gt; "pages#welcome"
  end
  </code></pre>
  
  <p>I have also seen this written as </p>
  
  <pre><code>authenticated :user do
    root :to =&gt; 'pages#welcome'
  end
  </code></pre>
  
  <p>I have not been able to find a clear description of the difference between using <code>namespace</code> and <code>authenticated</code>, and what implications this may have for security.</p>
  
  <p>I'd be very grateful if someone could enlighten me, or point me towards a clear description. </p>
  
  <p>Thanks!</p>