Step 16. Unitialized constant error


#1

I keep receiving an unitialized constant AlbumsController::Album error that says there's something wrong with my code in the albums_controller. My code:

class AlbumsController < ApplicationController

def index
    @albums = Album.all
  end

end

I'm sure it's something simple, but what am I missing here.


#2

Do you have an Album model in app/models/album.rb?


#3

I do, but it's spelled incorrectly. :sweat_smile: Thanks for helping me figure out the issue.


#4

This topic is solved.