I've just recently stopped being able to access my Models in rails console - it's like they don't exist. I can only see the Helper files, like UserHelper.rb etc. The model files have not been changed or renamed.
I've checked the solutions in other similar threads - stopping or removing spring doesn't resolve the issue - like here NameError: uninitialized constant (rails)
The only thing I've managed to do that had any effect was to change config.eager_load = false
to true
in config/environments/development.rb - but this setting had always been false before.
Similarly, running Rails.application.eager_load!
will load all models and make them useable, but this resets after I exit/reload rails console.
I'm running Rails v 4.2.8 in the amazon cloud9 IDE