title: `add_route': Invalid route name, already in use: 'root' (ArgumentError)
body: <p>Im using rails 4.1.1 and ruby 2.1.1 and am having an issue with devise, namely my routes..I have used this many times before</p>
  
  <pre><code>devise_for :users
  
  get 'pages/index'
  
  # Route to Devise Login Page
    devise_scope :user do
      root to: "devise/sessions#new"
    end
  
  # Directing the user after login
    authenticated :user do
      root :to =&gt; 'pages#index'
    end
  </code></pre>
  
  <p>But i get the error</p>
  
  <pre><code>`add_route': Invalid route name, already in use: 'root'  (ArgumentError)
  </code></pre>
  
  <p>when trying to start the server.. I can see that root is being used twice, but like i said i have been able to do this in the past.. Is there a way around this</p>
  
  <p>Thanks</p>