Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6553521
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T12:35:30+00:00 2026-05-25T12:35:30+00:00

This is a simple question, but I cannot seem to find a good answer

  • 0

This is a simple question, but I cannot seem to find a good answer in the docs (I’m a newbie with RVM).

What is the difference between rvm use ruby-1.9.2-head@rails3 and rvm ruby-1.9.2-head@rails3?

Was trying to setup two versions of my gemsets for 2 projects (rails 3.1 and 3.0.9) and was going to do:

rvm gemset create proj1 proj2
rvm 1.9.2-head@proj1
gem install rails -v 3.1

rvm 1.9.2-head@proj2
gem install rails -v 3.0.9

and then trying to figure out whether to use

rvm 1.9.2-head@proj1 

or

rvm use 1.9.2-head@proj1

to switch to that project/gemset. Hence my question…

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-25T12:35:31+00:00Added an answer on May 25, 2026 at 12:35 pm

    AFAIK, the rvm command alone is meant to be used to run something against multiple versions of ruby/ruby gems. For example, you can specify rvm 1.9.2,1.8.7 test.rb and it will execute test.rb using both rubies.

    In contrast, rvm use sets up your current shell environment to use whatever ruby you’ve passed. so if you rvm use 1.9.2@proj1, your next ruby command can simply be ruby whatever.rb, and rvm will pick ruby 1.9.2 using your proj1 gem set.

    so, to sum it up, use rvm 1.9.2,1.8.7 something.rb when you want to run against multiple rubies, use rvm use 1.9.2 when you want to set the ruby your current shell will use.

    EDIT

    This would’ve just looked terrible in a comment, so I’m editing instead. My output from those rvm commands looks like:

    ## RVM use will set the ruby for this shell
    [Moe:~]$ rvm use 1.9.2
    Using /Users/nunya/.rvm/gems/ruby-1.9.2-p290
    [Moe:~]$ ruby -e 'puts `rvm current`'
    ruby-1.9.2-p290
    
    ## rvm without the use will execute the command with all the rubies passed, 
    ## but will leave the shells ruby alone.
    [Moe:~]$ rvm 1.9.2,1.9.3 -e 'puts `rvm current`'
    ruby-1.9.2-p290
    ruby-1.9.3-preview1
    [Moe:~]$ ruby -e 'puts `rvm current`'
    ruby-1.9.2-p290
    # with a single ruby:
    [Moe:~]$ rvm 1.9.3 -e 'puts `rvm current`'
    ruby-1.9.3-preview1
    [Moe:~]$ rvm current
    ruby-1.9.2-p290
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

This may sound like a simple question, but I just cannot seem to find
I think this is a simple question, but I can not find the answer
This is probably a simple question but I can't seem to find the solution.
I can't seem to find an answer to this question or a good example
i think this is a simple question but I've searched around and can't seem
This may seem like a simple question but i am getting an error when
This is probably a simple question but I can't seem to figure out how
Ok sorry this might seem like a dumb question but I cannot figure this
Just a simple question, but I cannot seem to bind a plugin function to
I apologize if this is a newbie question, but I cannot figure out why

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.