Rails 3.1 — 'load_missing_contant': Expected ... to define ... (LoadError)
Stamped: 28 May 2011 | Show comments
Seeing this error?
This is a simple one to fix. I had two Classes of the same name but with different scopes, one was a model and the other a class in a separate module under lib. You have three options in this scenario:
Choose more appropriate names
Move the module out of lib into a gem
Rename the filename of the Class under the lib/ folder, while retaining the same class name.