标签: ruby rubygems httparty
我正在尝试使用httparty
require 'httparty'
但我正在
no such file to load -- httparty (LoadError)
我在OSX上使用Ruby 1.8.7
答案 0 :(得分:10)
在Ruby 1.8上,您必须先执行require "rubygems"才能在代码中需要任何Gems。所以:
require "rubygems"
require "rubygems" require "httparty" # Your code here.