title: Issues with Devise routes - error in view pages
body: <p>I had an existing User model before I installed Devise so I followed the instructions <a href="https://stackoverflow.com/questions/4001318/is-it-possible-to-add-devise-if-user-model-already-exists">here</a>.</p>
  
  <p>I even generated the devise views.  But when I am at my localhost and type in localhost:3000/users/sign_in or any of the other routes available to me via devise, it doesn't work.  </p>
  
  <p>Also, my existing RESTful routes for users that I got from using </p>
  
  <pre><code>resources :users
  </code></pre>
  
  <p>are no longer available unless I have both:</p>
  
  <pre><code>devise_for :users
  resources :users
  </code></pre>
  
  <p>but I thought I was supposed to delete the resources :users when I had the devise_for :users line in my routes file.</p>
  
  <p>What is going on?  Does anyone have any idea?</p>
  
  <p>EDIT</p>
  
  <p>The issue is when I go to users/password, it tells me that there is no user with ID=password, but this route is available to me.</p>
  
  <p>I also have issues with the users/sign_in and users/sign_out.  It redirects back to my root path for some reason.  Sometimes it works, other times it doesn't and I am not sure why.  The log looks like this:</p>
  
  <pre><code>Started GET "/users/sign_in" for 127.0.0.1 at 2011-09-16 19:05:43 -0400
  Processing by Devise::SessionsController#new as HTML
  User Load (0.3ms)  SELECT `users`.* FROM `users` WHERE `users`.`id` = 1 LIMIT 1
  Redirected to http://localhost:3000/
  </code></pre>