title: Devise authenticated route
body: <p>I'm using devise for auth and want to have the authenticated user route to locations#show. A user belongs to a location. I've tried a couple things including this in routes</p>
  
  <pre><code>authenticated :user do
      match 'locations/:id' =&gt; 'locations#show', :as =&gt; :root
    end
  </code></pre>
  
  <p>Unfortunately that doesn't change a thing and routes to home#index even when logged in. My full routes file</p>
  
  <pre><code> authenticated :user do
      match 'locations/:id' =&gt; 'locations#show', :as =&gt; :root
    end
    root :to =&gt; "home#index"
    resources :locations
    devise_for :users
    resources :users
  </code></pre>
  
  <p>Any ideas on how to have the root show the location id when a user is logged in?  </p>