Archive for the ‘Bug and Error Fixing’ Category

NameError in MainController#index uninitialized constant ApplicationController

I’ve this problem when run my “old” rails application.

After some minutes trace, I found the problem is “name” for application controller file.

In my old application, the name is “application.rb“,

and when I renamed it with “application_controller.rb“,  it’s working !!

Hope this help people.

Advertisements

Tag Cloud