ruby on rails gem install command code example Example: add and install gem rails $ bundle add GEM_NAME --version "~> num.version"