Thursday, July 16, 2009

Rails Error: no such file to load -- application

I recently deployed an application I was building to production and received the following error:

no such file to load -- application

It turns out that Rails changed the name of the application controller between versions. My production environment was 2.2.2 and my development environment was 2.3.2. Renaming the application_controller file fixed everything.

mv app/controllers/application_controller.rb app/controllers/application.rb

No comments: