NameError after the Upgrade to Rails 2.3.2

I was upgrading my local rails version from 2.2.2 to 2.3.2 by running:

gem update

I changed config/environment.rb to:

RAILS_GEM_VERSION = ‘2.3.2′ unless defined? RAILS_GEM_VERSION

Starting my local server and navigating to localhost:3000 produced the following error:

NameError in UsersController#login
uninitialized constant ApplicationController

Obviously, Google to the rescue (again)… :)

I found a post from http://giantrobots.thoughtbot.com/2009/4/15/rails-2-3-2-upgrade-gotchas

The solution is to rename controllers/application.rb to controllers/application_controller.rb.

Matt has a lot more tips for upgrade, so I recommend reading his post.

Leave a Reply