• Tue Jan 17

    A quick reference for setting up a new rvm gemset ready for Rails 3.1.

    Follow along, using Terminal or iTerm.

    1. Install Ruby 1.9.3

    rvm install 1.9.3

    If you want, make this rvm the default.

    rvm use 1.9.3 --default

    2. Create your new Rails 3.1.3 gemset.

    rvm gemset create rails313

    3. Select the gemset.

    rvm use ruby-1.9.3-p0@rails313 --default

    4. Install Rails.

    gem install rails

    This will install rails, bound to the gemset we just created.

    You can also optionally create an .rvmc file in various projects to ensure they run on the correct gemset. This is done by running the following in your individual project directory:

    rvm --rvmrc --create use ruby-1.9.3-p0@rails313