문제

I'm trying to use httparty

require 'httparty'

but I'm getting

no such file to load -- httparty (LoadError)

I'm using Ruby 1.8.7 on OSX

도움이 되었습니까?

해결책

On Ruby 1.8, you have to do require "rubygems" before you can require any Gems in your code. So:

require "rubygems"
require "httparty"

# Your code here.
라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top