Nick Carroll

Metabolising caffeine into code

Managing rails versions

without comments

You can use rake to manage rails versions in the vendor/rails directory of your rails project. This is useful for freezing your project to a particular version of rails. This solves a problem that many rails developers faced when their hosting providers upgraded rails on the servers, and subsequently broke all the rails apps running on the servers. Freezing to a specific version of rails means that the hosting providers can upgrade rails on the server without affecting your application.

Use any of the following rake commands to copy a version of rails into your vendor/rails directory.


rake rails:freeze:edge
rake rails:freeze:edge REVISION=100
rake rails:freeze:edge TAG=rel_1-2-1
rake rails:freeze:gems

The last rake command above will copy the local gems version of rails into vendor/rails. Whereas the other commands will checkout a version from the Rails subversion repository.

The above rake commands should be followed with an update as follows.


rake rails:update

Written by Nick

January 29th, 2007 at 8:50 pm

Posted in Programming

Tagged with

Leave a Reply