Skip to content

Instantly share code, notes, and snippets.

@sstephenson
Created August 13, 2011 14:20
Show Gist options
  • Star 7 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save sstephenson/1143900 to your computer and use it in GitHub Desktop.
Save sstephenson/1143900 to your computer and use it in GitHub Desktop.
Using multiple versions of Rails without gemsets
# 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
@metaskills
Copy link

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!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment