Re: [Rails] uninitialized constant SessionController

2016-04-03 Thread Rajinder Yadav
I missed that, it's always something easy Thanks! On Sun, Apr 3, 2016 at 5:17 PM, BuyzLots wrote: > your pointing your route to ‘session’ not ‘sessions’. It should be get > ‘/login’ => ‘sessions#new, as: :login > > Matt > >> On Apr 3, 2016, at 5:14 PM, Rajinder Yadav

Re: [Rails] uninitialized constant SessionController

2016-04-03 Thread BuyzLots
your pointing your route to ‘session’ not ‘sessions’. It should be get ‘/login’ => ‘sessions#new, as: :login Matt > On Apr 3, 2016, at 5:14 PM, Rajinder Yadav wrote: > > I don't understand why I am getting the error "uninitialized constant > SessionController" when I use

[Rails] uninitialized constant SessionController

2016-04-03 Thread Rajinder Yadav
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: