Step 16. Unitialized constant error


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


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


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


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


This topic is solved.