Thursday, 16 April 2009
Problem When Upgrading From Rails 2.2.2 to 2.3.2
I've just installed the latest Active* gems to move my Rails install to 2.3.2. When I ran a console I got the following error
Loading development environment (Rails 2.3.2) /Library/Ruby/Gems/1.8/gems/activesupport-2.3.2/lib/active_support/dependencies.rb:443:in `load_missing_constant':NameError: uninitialized constant ApplicationController
I googled this and found a couple of posts on the issue but nothing obvious that I was doing. After generating a 2.3.3 app and comparing files the solution was obvious and easy. I 2.2.2 the ApplicationController class is in a file called Application.rb, in 2.3.2 this has changed to application_controller.rb. Changing the file name has fixed my problem.
Posted by at 6:37 PM in Ruby
[Trackback URL for this entry]
