Home » Web

Uninitialized constant ApplicationController

12 February 2011 No Comment
VN:F [1.9.22_1171]
Rating: 10.0/10 (1 vote cast)

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.

Solution

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.

Uninitialized constant ApplicationController, 10.0 out of 10 based on 1 rating

Incoming search terms:

  • uninitialized constant ActiveAdmin
  • activeadmin uninitialized constant
  • active admin uninitialized constant
(Visited 316 times, 1 visits today)

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.