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
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
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:
3 matches
Mail list logo