title: devise new_user_session_path & new_user_registration_path not working
body: <p>for some weird reason, my sign-up and log-in links are not working.</p>
  
  <p>I got it working for the first time but afterwards, the link redirects me to the root path of my app.</p>
  
  <p>here's the routes file.</p>
  
  <pre><code>Rails.application.routes.draw do
  
    get 'pages/about'
  
    devise_for :users
  
    resources :posts
  
    root to: "pages#home"
  
  end
  </code></pre>
  
  <p>and here's what the rails server logs whenever i click the links</p>
  
  <pre><code>Started GET "/users/sign_up" for 127.0.0.1 at 2016-02-15 09:51:47 +0800
  Processing by Devise::RegistrationsController#new as HTML
    User Load (0.6ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1  ORDER BY "users"."id" ASC LIMIT 1  [["id", 1]]
  Redirected to http://localhost:3000/
  Filter chain halted as :require_no_authentication rendered or redirected
  Completed 302 Found in 4ms (ActiveRecord: 0.6ms)
  
  
  Started GET "/" for 127.0.0.1 at 2016-02-15 09:51:47 +0800
  Processing by PagesController#home as HTML
    Rendered layouts/_landing.html.erb (0.3ms)
    Rendered pages/home.html.erb within layouts/application (1.6ms)
    Rendered layouts/_navbar.html.erb (0.3ms)
    Rendered layouts/_footer.html.erb (0.0ms)
  Completed 200 OK in 90ms (Views: 89.4ms | ActiveRecord: 0.0ms)
  </code></pre>
  
  <p>and for my views i used the following links.</p>
  
  <pre><code>&lt;li&gt;&lt;%= link_to "Log-in", new_user_session_path %&gt;&lt;/li&gt;
  &lt;li&gt;&lt;%= link_to "Sign-up", new_user_registration_path %&gt;&lt;/li&gt;
  </code></pre>
  
  <p>can someone please tell what am I missing here? thanks</p>