title: Devise & MongoMapper & Rails - Cannot see any devise pages (broken routes / actions)
body: <p>I am getting "too many redirects" when I'm trying to access my /users/sign_up page</p>
  
  <p>Devise + MongoMapper + Rails 3.2.13</p>
  
  <p><img src="https://imgur.com/Vv0DqHq" alt="Too many redirects"></p>
  
  <p>rake routes:</p>
  
  <pre><code>                   users GET    /users(.:format)              users#index
                           POST   /users(.:format)              users#create
                  new_user GET    /users/new(.:format)          users#new
                 edit_user GET    /users/:id/edit(.:format)     users#edit
                      user GET    /users/:id(.:format)          users#show
                           PUT    /users/:id(.:format)          users#update
                           DELETE /users/:id(.:format)          users#destroy
          new_user_session GET    /users/login(.:format)        devise/sessions#new
              user_session POST   /users/login(.:format)        devise/sessions#create
      destroy_user_session DELETE /users/logout(.:format)       devise/sessions#destroy
             user_password POST   /users/reset(.:format)        devise/passwords#create
         new_user_password GET    /users/reset/new(.:format)    devise/passwords#new
        edit_user_password GET    /users/reset/edit(.:format)   devise/passwords#edit
                           PUT    /users/reset(.:format)        devise/passwords#update
  cancel_user_registration GET    /users/cancel(.:format)       devise/registrations#cancel
         user_registration POST   /users(.:format)              devise/registrations#create
     new_user_registration GET    /users/sign_up(.:format)      devise/registrations#new
    edit_user_registration GET    /users/edit(.:format)         devise/registrations#edit
                           PUT    /users(.:format)              devise/registrations#update
                           DELETE /users(.:format)              devise/registrations#destroy
                      root        /                             customers#index
                 customers GET    /customers(.:format)          customers#index
                           POST   /customers(.:format)          customers#create
              new_customer GET    /customers/new(.:format)      customers#new
             edit_customer GET    /customers/:id/edit(.:format) customers#edit
                  customer GET    /customers/:id(.:format)      customers#show
                           PUT    /customers/:id(.:format)      customers#update
                           DELETE /customers/:id(.:format)      customers#destroy
  </code></pre>
  
  <p>Rails server console just spits this out over and over:</p>
  
  <pre><code>Started GET "/users/sign_in" for 127.0.0.1 at 2014-02-24 21:10:01 -0800
  Processing by UsersController#show as HTML
    Parameters: {"id"=&gt;"sign_in"}
  Completed 401 Unauthorized in 0ms
  </code></pre>
  
  <p>I read on their ReadMe that Devise is supposed to make some helper methods in my controller - I don't see any but the standard 7 from the generator.</p>
  
  <p>It seems like it's trying to login as "sign_in" which I certainly didn't instruct it to do - this is a brand new Rails application basically just with one model - User - and one model - Customer - and absolutely no data or any other files yet.  Literally just trying to get this Devise login page to render - or signup page - or any page.</p>
  
  <p>Here is my entire routes.rb file right now:</p>
  
  <pre><code>  resources :users
  
    devise_for :users
  
    root :to =&gt; "customers#index"
  
    resources :customers
  </code></pre>
  
  <p><strong>This happens when I have before_filter authenticate_user! in my Users Controller</strong></p>
  
  <p>So when I take that line out - and I just try to hit /users/sign_up - I get the following:</p>
  
  <pre><code>No route matches {:action=&gt;"edit", :controller=&gt;"users", :id=&gt;nil}
  </code></pre>
  
  <p>It's supposed to redirect here:</p>
  
  <pre><code>  edit_user_registration GET    /users/edit(.:format)         devise/registrations#edit
  </code></pre>
  
  <p>The controller action is :</p>
  
  <pre><code>def edit
      @user = User.find(params[:id])
    end
  </code></pre>
  
  <p>And of course - since there's nothing in my DB at all - @user is nil now - is that the issue?</p>
  
  <p>How do people get Devise started???  I've never once successfully got this stupid thing to work.</p>