uninitialized constant SessionController

I don't understand why I am getting the error "uninitialized constant
SessionController" when I use the path login_path vs new_session_path
which works fine?

My routes is defined like this:

  resource :session
  get '/login' => 'session#new', as: 'login'
  get '/logout' => 'session#destroy', as: 'logout'

     session POST /session(.:format) sessions#create
new_session GET /session/new(.:format) sessions#new
edit_session GET /session/edit(.:format) sessions#edit
             GET /session(.:format) sessions#show
             PATCH /session(.:format) sessions#update
             PUT /session(.:format) sessions#update
             DELETE /session(.:format) sessions#destroy
       login GET /login(.:format) session#new
      logout GET /logout(.:format) session#destroy

your pointing your route to ‘session’ not ‘sessions’. It should be get ‘/login’ => ‘sessions#new, as: :login

Matt

I missed that, it's always something easy .... Thanks!