Results 1 to 2 of 2
Thread: Ruby questions
Jan 29, 2012, 12:31 #1
Just setting up my dev environment on my new mac and just want someone to clarify all this info if possible for me.
So OSX comes with a standard version of Ruby preinstalled
I install RVM to allow me to install multiple versions of Ruby - I set 1.9.3 as default.
Ok, that's fine up to here.
Now, I have seen a ton of sites saying that RVM uses gemsets to allow me to install different versions of rails into each gemset. Ok but what I get confused with is if I create a new rails app it gets a gemfile and I add the names of my gems into there and use bundle install to install them.
I'm just getting super confused as to how this all fits together.
Is someone able to help me clear up my confusion?
Feb 3, 2012, 07:58 #2
- Join Date
- Feb 2003
- Akron, OH, USA
- 3 Post(s)
- 0 Thread(s)
You would create a gemset with whatever version of ruby you want to use.
rvm use 1.9.3@gemsetname
Ruby will act as if there are no gems installed on your system. Install Rails, create your app, and create your gemfile. When you run the bundle command, Bundler will install all necessary gems into the current gemset. Meaning that they will only be available when you are using that particular gemset.
Hopefully that makes sense. If you need further info, I recommend you read through the two following sites: