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