7.1 Login I Step 2


I’m stuck and don’t know what to do. I think my code is right but I keep getting an error message.
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 `<top (required)>’: 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.

Hi @amoraq,

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

Generate a controller named Sessions.

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

1 Like

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

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