Will creates nice web-things, builds awesome ideas, and collaborates with other creative types.

Home > Blog > application.rb renamed application _controller.rb in rails 2.3

application.rb renamed application _controller.rb in rails 2.3

by Will on Aug 2nd 2011, 08:39

I recently had an issue with a rails app working fine locally under rails 2.3.2 but failing when deployed to Media Temple’s Grid Service.

 

I got the error:

 

custom_require.rb:31:in `gem_original_require’: no such file to load — application (MissingSourceFile) etc etc

 

This turned out to be due to this change in the rails core. the previous application controller class ApplicationController, was kept in application.rb in the controllers folder. This is of course inconsistent, so they moved it to application_controller.rb.

 

To Fix, rename your application_controller.rb to application.rb

I’m not sure why Media Temple’s Rails 2.3.2 is different from mine, but anyway, perhaps this will help someone out.

application.rb renamed application _controller.rb in rails 2.3 RoR ruby rails

blog comments powered by Disqus