7.1 Login I Step 2


#1

Link:
https://www.codecademy.com/courses/rails-auth/lessons/authentication/exercises/authentication-login-i?action=resume

I'm stuck and don't know what to do. I think my code is right but I keep getting an error message.
Code:
root 'albums#index'
get 'albums' => 'albums#index'
get 'albums/new' => 'albums#new'
get 'albums/:id' => 'albums#show', as: :album
post 'albums' => 'albums#create'
get 'signup' => 'users#new'
resources :users

get 'signup/login' => 'sessions#new'

Error message:
spec/spec.rb:4:in `': uninitialized constant SessionsController (NameError)

Also, in the apps folder, the sessions.rb hasn't been created.

I've restarted the exercise five times so I don't think that's the answer.


#2

Hi @amoraq,

Did you complete all of step one, specifically this part?

Generate a controller named Sessions.


#3

I did. It moved on. The code is "rails generate controller Sessions" right?


#4

@amoraq Correct, and glad to hear you got passed :slight_smile:


#5

This topic was automatically closed 24 hours after the last reply. New replies are no longer allowed.