Skip to Content
Ruby on Rails® for Microsoft Developers
book

Ruby on Rails® for Microsoft Developers

by Antonio Cangiano
April 2009
Intermediate to advanced content levelIntermediate to advanced
479 pages
12h 55m
English
Wrox
Content preview from Ruby on Rails® for Microsoft Developers

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, ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Ruby on Rails™ 3 Tutorial: Learn Rails™ by Example

Ruby on Rails™ 3 Tutorial: Learn Rails™ by Example

Michael Hartl

Publisher Resources

ISBN: 9780470374955Purchase book