Episode 2 - Upgrading to Rails 3

Title

Click on image above for a preview

Released: Jul 25, 2010, Running time: 57 min

In this episode:

We upgrade the URLAgg project to Rails 3 and get the Rails console and server to load and run all the specs.

Tags: rails3, rspec2, rspec, bundler, gemfile, upgrade

Add to cart$5.00
  • Share

In the first episode we moved URLAgg to Bundler as a precursor to upgrading to Rails 3.

In this episode we upgrade the project to Rails 3 and RSpec 2, get the Rails console to start, the Rails server to load and all our existing specs to run. Most specs are failing at this point, the Rails about page reports that we are running Rails 3 beta4.

These are the steps we go through on the path to upgrade:

  • Create a gemset using rvm for rails 3 so we don’t clutter our system with the pre-release versions.
  • Install rails dependencies for version 3 and the rails pre-release version of the gem.
  • Use the rails_upgrade plugin to tell us what needs upgrading and help us back up and translate routes and configs.
  • Hunt down compatible versions and branches of the gems and plugins we are using. This is by far the most time consuming part of the upgrade process.

Source code for this episode:

References:

Screenshots

  • Vlcsnap-2010-07-25-16h10m49s159
  • Vlcsnap-2010-07-25-16h11m12s136
  • Vlcsnap-2010-07-25-16h13m39s66
  • Vlcsnap-2010-07-25-16h14m13s154
  • Vlcsnap-2010-07-25-16h21m37s242
  • Vlcsnap-2010-07-25-16h21m58s199

No comments yet

Commenting is disabled.