Skip to content

Instantly share code, notes, and snippets.

@akluew
akluew / Error
Last active August 29, 2015 14:20
Unable to autoload nested modules in Ubuntu 14.04 with ruby 2.0.0p353 (2013-11-22 revision 43784) [x86_64-linux] and Rails 4.0.12
##########################################
# Getting the following error when in rails console
##########################################
[1] pry(main)> API
=> API
[2] pry(main)> API::BaseController
LoadError: Unable to autoload constant API::BaseController, expected /home/akluew/Dev/<appname>/app/controllers/api/base_controller.rb to define it
from /home/akluew/.rvm/gems/ruby-2.0.0-p353/gems/activesupport-4.0.12/lib/active_support/dependencies.rb:464:in `load_missing_constant'