Ruby: "nameerror: uninitialized constant" issue

Example:

SomeClass.new
This error is raised when you reference a class or module that doesn't exist or hasn't been required yet.

Solution:

require 'some_class'
SomeClass.new

Beginner's Guide to Ruby