views:

18

answers:

0

I'm having a problem with some devise routes. The session named routes have the actions in the rong place. It should be 'new_admin_session' and 'destroy_admin_session', but instead it's 'admin_session_new' and 'admin_session_destroy'. Anyone know what's happening?

       admin_session_new GET    /admin/sign_in(.:format)              {:action=>"new", :controller=>"devise/sessions"}
       admin_session POST   /admin/sign_in(.:format)                  {:action=>"create", :controller=>"devise/sessions"}
       admin_session_destroy GET    /admin/sign_out(.:format)         {:action=>"destroy", :controller=>"devise/sessions"}
      admin_password POST   /admin/password(.:format)                 {:action=>"create", :controller=>"devise/passwords"}
  new_admin_password GET    /admin/password/new(.:format)             {:action=>"new", :controller=>"devise/passwords"}
 edit_admin_password GET    /admin/password/edit(.:format)            {:action=>"edit", :controller=>"devise/passwords"}
      admin_password PUT    /admin/password(.:format)                 {:action=>"update", :controller=>"devise/passwords"}
        admin_unlock POST   /admin/unlock(.:format)                   {:action=>"create", :controller=>"devise/unlocks"}
    new_admin_unlock GET    /admin/unlock/new(.:format)               {:action=>"new", :controller=>"devise/unlocks"}
        admin_unlock GET    /admin/unlock(.:format)                   {:action=>"show", :controller=>"devise/unlocks"}