Thursday, September 24, 2009

Rails ApplicationController Not Found

Upgrading a 2.2 project to 2.3 and beyond. I get an error:

NameError (uninitialized constant ApplicationController):

This is because the default file for the ApplicationController has changed from application.rb to the normalized application_controller.rb

If you are using svn, do

svn rename app/controllers/application.rb app/controllers/application_controller.rb

And in your commit comment, remember the schmitzer.

No comments: