I am fairly new to ruby and I am trying to execute a spec and I receive this error:
RuntimeError:
:json is not registered on Faraday::Request
I am trying to use this gem: https://github.com/Chicago/windy
Mac OS X 10.7.4
Ruby 1.9.3, using RVM
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
I’ve just run into this when upgrading Faraday. The json request middleware was removed from Faraday in 0.8. It is now in the
faraday_middlewaregem. You shouldgem install faraday_middlewareand require it in the file that creates the Faraday object.See https://github.com/lostisland/faraday_middleware/wiki/Changes-0.8