I am upgrading from Rails 2.2.2 to 2.3.2 on a project today. Here’s what I’ve found so far.
- RAILS_ROOT/app/controllers/application.rb has been renamed to application_controller.rb. Upon upgrading if you see
/usr/lib/ruby/gems/1.8/gems/activesupport-2.3.2/lib/active\_support/dependencies.rb:443:in 'load\_missing\_constant\':NameError: uninitialized constant ApplicationController
, that’s the change you need to make. Test::Unit::TestCase
is nowActiveSupport::TestCase
. The error you’ll see is undefined method `use_transactional_fixtures=.- Using
fixture_file_upload
stops working unless youinclude ActionController::TestProcess
.
More as I find them…