Managing Multiple Versions of Ruby Gem

I am new, but I have a question regarding the management of different versions of the gem, in my case, zurb-foundation. A new version appeared, and I did a gem update, and my old versions of the framework no longer compile.

My project contains a config.rb file starting with

require 'zurb-foundation' 

How does Ruby know how to use the latest version of this? Is there a symbolic link pointing to the latest version? If so, I thought I could just rewrite this symbolic link depending on which project I am currently working on.

+6
source share
2 answers

You must use RVM to manage multiple versions of ruby ​​and gems. Visit the following links to get an idea of ​​rvm and install.

https://rvm.io/

https://rvm.io/rvm/install/

0
source

If you have several projects that use different versions of the gem, you probably want to take a look at the Bundler.

http://gembundler.com/

Bundler makes managing ruby ​​gems a breeze. This is highly recommended!

+6
source

All Articles