Home » Web

Uninitialized constant ApplicationController

12 February 2011 No Comment

Uninitialized constant ApplicationControllerProblem

After you upgrade from a previous version of Rails to the latest 2.3.2, you get an error:

NameError: uninitialized constant ApplicationController

both in the web browser and in console.


Since the introduction of Rails 2.3 the application.rb file has been renamed to application_controller.rb. In order to solve this problem, just rename your application.rb file to application_controller.rb.

Leave your response!

Add your comment below, or trackback from your own site. You can also subscribe to these comments via RSS.

Be nice. Keep it clean. Stay on topic. No spam.

You can use these tags:
<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>

This is a Gravatar-enabled weblog. To get your own globally-recognized-avatar, please register at Gravatar.