Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我正在尝试使用 httparty
require 'httparty'
但我得到
no such file to load -- httparty (LoadError)
我在 OSX 上使用 Ruby 1.8.7
在 Ruby 1.8 上,您必须require "rubygems"先在代码中要求任何 Gem。所以:
require "rubygems"
require "rubygems" require "httparty" # Your code here.