Skip to content

Instantly share code, notes, and snippets.

@DerekK19
Created August 26, 2013 03:09
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save DerekK19/6337811 to your computer and use it in GitHub Desktop.
Save DerekK19/6337811 to your computer and use it in GitHub Desktop.
Setup RVM to use a different version of Rails
# Assuming you have ruby (say 2.0) installed along with Rails (4.0)
# If you now want to set up Rails 3.2 as well, (for example to connect to SQL Server databses, which Rails 4.0 can't do)
# Set up rvm to use a different gemset (which in this case we will call Rails3.2)
rvm use ruby-2.0.0@Rails3.2 --create
# install Rails 3.2 in that gemset
gem install rails -v 3.2
# list the available rvm gemsets
rvm gemset list
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment