Trouble including httparty in ruby on rails

前端 未结 6 1547
迷失自我
迷失自我 2021-02-18 23:16

I\'ve been trying to use HTTParty in my rails code

sudo gem install httparty

From the command line I can now successfully do

ht         


        
6条回答
  •  野趣味
    野趣味 (楼主)
    2021-02-18 23:59

    Ran into the same problem. Then I switched from Ruby 1.8.7 to Ruby 1.9.2 and all errors varnished into thin air.

    (Yes, it first took me quite some hours to come up with the possibility that the Ruby version might be the problem. Configured a secundairy server to avoid possible conflicts with 2 ruby versions, and after way to many hours I got my RoR stack up and running. And the first test with httparty (based on the example on top) worked out of the box! Finally can sleep RESTfully again :-)

提交回复
热议问题