Created
August 13, 2011 14:20
-
-
Save sstephenson/1143900 to your computer and use it in GitHub Desktop.
Using multiple versions of Rails without gemsets
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# RubyGems has this functionality built-in. Just specify | |
# the particular version you want to use as the first argument | |
# of the command, surrounded by underscores. | |
$ gem install rails --version 3.0.9 | |
... | |
$ gem install rails --pre | |
... | |
$ rbenv rehash | |
$ rails --version | |
Rails 3.1.0.rc5 | |
$ rails _3.0.9_ --version | |
Rails 3.0.9 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
You know, I have always seen this in the bin stubs installed by RubyGems, but never thought of using it, nor remember it when needed. Thanks for the reminder!