Trouble including httparty in ruby on rails

前端 未结 6 1613
迷失自我
迷失自我 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-19 00:17

    I had this same error. I tried moving the require HTTParty all over, but found, all I needed to do was restart the rails server In the end I did not need to 'require HTTParty' nor 'include' it. It just needed to be loaded into rails.

提交回复
热议问题