title: Devise admin model not able to complete session controller functions
body: <p>I am building a basic CRUD application. The user model is working perfectly. However, I created my second devise model (admin) and I am receiving an error when trying to sign_in and sign_out with my admin account. </p>
  
  <p><strong>The Error</strong></p>
  
  <pre><code>uninitialized constant Admins::SessionsControllerController
  </code></pre>
  
  <p><strong>sessions_controllers.rb</strong></p>
  
  <p>The admin controller is in controllers/admins/sessions_controllers.rb</p>
  
  <pre><code>class Admins::SessionsController &lt; Devise::SessionsController
  end
  </code></pre>
  
  <p><strong>routes.rb</strong></p>
  
  <pre><code>resources :gifts
  devise_for :users
  devise_for :admins, :controllers =&gt; { :sessions =&gt; "admins/sessions_controller" }
  
  authenticated :user do
    root to: "gifts#index", :as =&gt; "authenticated_user_root" 
  end
  
  authenticated :admin do
    root to: "management#index", :as =&gt; "authenticated_admin_root" 
  end
  
  root :to =&gt; 'pages#index'
  </code></pre>
  
  <p>I also see the proper route coming up when I rake routes:</p>
  
  <pre><code>destroy_user_session_path    DELETE  /users/sign_out(.:format)   devise/sessions#destroy
  </code></pre>
  
  <p><strong>admin.rb</strong></p>
  
  <pre><code>class Admin &lt; ActiveRecord::Base
    devise :database_authenticatable, :registerable,
       :recoverable, :rememberable, :trackable, :validatable
  end
  </code></pre>
  
  <p><strong>Full trace</strong></p>
  
  <pre><code>activesupport (4.0.0) lib/active_support/inflector/methods.rb:228:in `const_get'
  activesupport (4.0.0) lib/active_support/inflector/methods.rb:228:in `block in constantize'
  activesupport (4.0.0) lib/active_support/inflector/methods.rb:224:in `each'
  activesupport (4.0.0) lib/active_support/inflector/methods.rb:224:in `inject'
  activesupport (4.0.0) lib/active_support/inflector/methods.rb:224:in `constantize'
  actionpack (4.0.0) lib/action_dispatch/routing/route_set.rb:76:in `controller_reference'
  actionpack (4.0.0) lib/action_dispatch/routing/route_set.rb:66:in `controller'
  actionpack (4.0.0) lib/action_dispatch/routing/route_set.rb:44:in `call'
  actionpack (4.0.0) lib/action_dispatch/routing/mapper.rb:44:in `call'
  actionpack (4.0.0) lib/action_dispatch/journey/router.rb:71:in `block in call'
  actionpack (4.0.0) lib/action_dispatch/journey/router.rb:59:in `each'
  actionpack (4.0.0) lib/action_dispatch/journey/router.rb:59:in `call'
  actionpack (4.0.0) lib/action_dispatch/routing/route_set.rb:655:in `call'
  warden (1.2.3) lib/warden/manager.rb:35:in `block in call'
  warden (1.2.3) lib/warden/manager.rb:34:in `catch'
  warden (1.2.3) lib/warden/manager.rb:34:in `call'
  </code></pre>
  
  <p>I'm looking for help to get my admin model working properly. Does anyone know how to get this working properly?</p>