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 6561655
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T13:36:51+00:00 2026-05-25T13:36:51+00:00

I am exploring the world of Ruby and RVM. I am going through a

  • 0

I am exploring the world of Ruby and RVM. I am going through a lot of documentation and trying out RVM, but I am a bit confused about the entire work flow. I am writing down the workflow as I understand it. Can someone please take a look and see if this understanding is correct?

I am using a Mac.

  • RVM is essentially a script that allows us to manage Ruby environments for development purposes.
  • RVM allows switching between different versions of Ruby with rvm use 1.9.2.
  • To use a particular gemset with the current Ruby version, we need to create a gemset using
    rvm --create gemset rails235
  • Install the gem using gem install rails -v=2.3.5

Q: What happens if I did gem install rails -v=2.3.5 prior to creating a gemset? Will there be two copies of the same Rails installed under RVM’s Ruby 1.9.2?

Q: What happens if I install 2.3.5 and 3.1.0 prior to creating gemsets and then create a gemset for each version?

Q: where does rvmrc come into picture in the whole story?

Any other information that helps me get this straight is extremely helpful.

  • 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-25T13:36:51+00:00Added an answer on May 25, 2026 at 1:36 pm

    @Kiran, this is in reference to your comment above. When you install a different version of ruby with rvm, it’ll add to this list:

    $ rvm list
    
    rvm rubies
    
    => ruby-1.9.2-p290 [ i386 ]
    

    On my system, I’ve only got one version running (for now). This helps too

    $ rvm gemset list
    
    gemsets for ruby-1.9.2-p290 (found in /Users/mike/.rvm/gems/ruby-1.9.2-p290)
       global
    => mg_diaspora
       rails3
       railscasts
       ruby
       sorcery
    

    The practice is to install common gems into your global gemset and create/use sets for everything else. I tend to keep pry and others in the global gemset. As Mike K. said, you’d never do #2; if you did do such a thing, I would imagine global having priority.

    #3 .rvmrc

    You can do things like this in the file:

    rvm use 1.9.2@rails3 --create
    

    This will ensure whenever you ‘cd’ into the directory, it’ll switch to 1.9.2 and it’s ‘rails3’ gemset; the following attribute ensures the gemset will be created if it doesn’t already exist.

    Update

    Ex: if I say rvm use 1.9.2@rails3 –create how does this pick the version of rails3.1.0 gem
    Because by the time this rails3 gemset is created I already have 2 versions of rails gems?

    That’s easy – when you run bundle install it creates a Gemfile.lock; this essentially ‘locks’ the gems that your application is set to use. You’ve never require two different versions of rails in a single Gemfile anyways – that’s just ridiculous =)

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have recently started exploring Maven, but I feel a bit overwhelmed of all
Currently I am exploring the world of ruby. Playing around in the irb you
I'm trying a solve an exercise from Exploring Python book. But, I guess I
I'm just exploring ruby and was wondering about the theoretical possibility of adding a
I am new to Linq world and currently exploring it. I am thinking about
I'm exploring the possibility of writing an application in Erlang, but it would need
I'm thinking about exploring the idea of having our client software run as a
I am a PHP developer exploring the outside world. I have decided to start
Hope someone can help, I'm not a programmer, but have been interested in exploring
Coming from the ruby on rails world, I'm looking for an efficient way to

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.