a2z icon indicating copy to clipboard operation
a2z copied to clipboard

undefined method `key=' for A2z::Client:

Open avadhbsd opened this issue 10 years ago • 2 comments

I am getting undefined method error while trying to instantiate the 'client'. I am newbie, would truly appreciate any help.

client = A2z::Client.new(key: 'YOUR_KEY', secret: 'YOUR_SECRET', tag: 'YOUR_TAG')

I have double checked the details they are correct.

this is how my terminal output looks like

Started GET "/" for 127.0.0.1 at 2015-04-22 00:45:57 +0530
Processing by PagesController#index as HTML
Completed 500 Internal Server Error in 0ms

NoMethodError (undefined method `key=' for #<A2z::Client:0x007fc6ced596b0>):

avadhbsd avatar Apr 21 '15 19:04 avadhbsd

I'm having the same issue, did you make any progress on figuring out why?

rectifyer avatar Aug 20 '15 22:08 rectifyer

This likely relates to the wrong version of the "jeff" gem being imported somehow. I attempted to correct it with this change, but it sounds like it's not working. Make sure you're using the latest version of a2z. If that doesn't fix it, then try explicitly specifying version jeff 0.6.4 in your Gemfile. Let me know if that still doesn't work.

mhuggins avatar Aug 26 '15 17:08 mhuggins