title: authenticated and unauthenticated routes in rails 5
body: <p>I have updated my rails 4 application to Rails 5 but I am unable to set authenticated and unauthenticated routes on rails 5.</p>
  
  <h2>In rails 4:</h2>
  
  <pre><code>unauthenticated do
     root to: "home#index", as: :unauthenticated_root
  end
  
  authenticated :user do
    root :to =&gt; "home#dashboard"
  end
  </code></pre>
  
  <hr>
  
  <p>but how to set in for rails 5 application</p>