Rails in Vendor
To install a specific version of Ruby on Rails into your RAILS_ROOT/vendor directory run the following command.
rake rails:freeze:edge TAG=rel_2-0-2
The 2-0-2 part should correspond to the version of rails you would like to run, with the periods replaced with dashes.
For version 2.0.2, it currently doesn’t install activeresource. This is because the list of things to install is in the system rails ‘railties’ directory and that has the old list. If you run the rake command a second time it should install activeresource properly. This is because the first attempt did install the new railties in your vendor directory.
An alternative is to install your own gems locally. You apparently can mix and match with the system gems. These instructions sound like they should work: See How to Use Multiple Gem Repositories on the rails site.