From Rails 1.2.6 to 2.3.2

Hello,

I have an application I did in 2007 in Rails 1.2.6. It was my first one -- so I am sure the code could be improved and better refractored. If I wanted to upgrade the application to 2.3.2 and hopefully improve it -- how would you suggest I tackle this? Any advice would be great.

Elle

  1. Upgrade to latest 2.0.x release, run all of your tests, fix any failures, address any deprecations.
  2. Upgrade to latest 2.1.x release, run all of your tests, fix any failures, address any deprecations.
  3. Upgrade to latest 2.2.x release, run all of your tests, fix any failures, address any deprecations.
  4. Upgrade to latest 2.3.x release, run all of your tests, fix any failures, address any deprecations.

You may need to upgrade plugins and/or other tools at one or more steps, too. I know it seems like a long recipe, but it should keep the problems to a minimum along the way.

Regards, Craig

So, I've got one more question: how do you upgrade to certain version?

Thanks, Elle

Change the RAILS_GEM_VERSION in your environment.rb and run `rake rails:update`.