Recipe 2.8. Installing and Running Edge Rails
You want to download and run the latest, pre-release version of Rails, known as Edge Rails.
From the root of your Rails application, type:
$ rake rails:freeze:edge
When that command finishes, restart your server, and you'll be running your application on Edge Rails.
If your project is under revision control with Subversion, you can take advantage of Subversion's
$ svn propedit svn:externals vendor
svn propedit opens your default editor (as indicated by the EDITOR environment variable) on an empty page. In that page, type the following value for svn:externals :
When you save the file and exit the editor, you'll see the message:
Set new value for property 'svn:externals' on 'vendor'
You then want to check in the property change you just made on the
$ svn ci -m 'modified externals on vendor to fetch from the Rails trunk' Sending vendor Committed revision 4.
$ svn proplist --verbose vendor Properties on 'vendor': svn:externals : rails http://dev.rubyonrails.org/svn/rails/trunk/
property set on
$ svn update
Edge Rails is the
Running Edge Rails is a great way to preview what is likely to be included in the next public release of Rails. The code is usually pretty stable, but there are no
$ rake rails:freeze:edge REVISION=3495
This command starts by removing the vendor/rails directory (if one exists), and then it downloads the specified revision from the Rails Subversion repository. You can also checkout a specific version of Edge by specifying a tag; for instance, you can checkout Rails 1.1.2 with:
$ rake rails:freeze:edge TAG=rel_1-1-2
If your application has been running Edge Rails, and you would rather it use the Rails packages and gems in your system's Ruby installation, you can run:
$ rake rails:unfreeze
If you are using Mac OS X or a GNU/Linux-like environment, you can quickly and easily swap between multiple versions of Edge Rails or freeze/unfreeze your Rails application even when you don't have Internet access. To do this, you have to checkout each Edge Rails version you need into its own directory. Then, if you want to freeze your Rails application to run against a particular version of Edge Rails, just