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.
This entry was posted
on Tuesday, April 21st, 2009 at 3:38 pm and is filed under Ruby on Rails, Web Development.
You can follow any responses to this entry through the RSS 2.0 feed.
You can skip to the end and leave a response. Pinging is currently not allowed.