11.5. Upgrading to Rails 2.3

By the time you read this final section, Rails 2.3 is likely to have already been released. To fully understand the differences between Rails 2.2 and Rails 2.3, it is fundamental that you review the Rails 2.3 Release Notes available online at http://guides.rubyonrails.org/2_3_release_notes.html.

If you'd like to upgrade existing projects to the latest version of Rails, you can use rake rails:update, which will take care of updating configuration, script, and JavaScript files. This will often not be sufficient enough to upgrade from one version to another, because there could be other incompatibilities among the two (for example, formatted helpers are no longer available in Rails 2.3), but it's a good starting point for you to take over and manually upgrade the application from.

Developers who'd like to work with the latest development version of Rails (known as edge) can run the following task to download and freeze edge Rails in the vendor directory:

C:\projects\test> rake rails:freeze:edge
(in C:/projects/test)
cd vendor
Downloading Rails from http://dev.rubyonrails.org/archives/rails_edge.zip
Unpacking Rails
rm -rf rails
rm -f rails.zip
rm -f rails/Rakefile
rm -f rails/cleanlogs.sh
rm -f rails/pushgems.rb
rm -f rails/release.rb
touch rails/REVISION_922c528d428b5ab08611976dfe0037875a4bf387
cd -
Updating current scripts, javascripts, and configuration settings

As you can see this downloads the latest version, unpacks its code in the vendor folder, ...

Get Ruby on Rails® for Microsoft Developers now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.