dphuang2 / PoGoBag

Analyze and share your Pokémon through a locally run server! Official Site access has been stopped as of 12/23/2016
146 stars 49 forks source link

wrong number of arguments (given 2, expected 3) #60

Open amandachew33 opened 8 years ago

amandachew33 commented 8 years ago

I'm having trouble logging in via the Google Authorization method -- after a fresh install, I'm getting the following error:

ArgumentError in SessionsController#create wrong number of arguments (given 2, expected 3)

screen shot 2016-08-13 at 12 03 37 am

I think this may have something to do with an update to the way Google Authenticates and it's now accepting a third argument. Any thoughts on a quick fix to this? Thanks!

amandachew33 commented 8 years ago

I tried implementing a solution mentioned in #24 (which is why there are commented out lines in the screenshot) but it gave me an error of "Invalid user/password combination"

When I tried adding a their argument to the highlighted in red line "google =" then it returns this error: undefined method `upcase' for nil:NilClass

So not sure how to work around this!

naeem-bvg commented 8 years ago

I am getting the same error. Running ubuntu.

Any updates?

AeonSaber commented 8 years ago

I actually already made a thread for this issue.. I think it might have something to do with the version of ruby you are using. The first time i installed this app i had ruby already installed at the newest version. i had to install the version that the tutorial calls for (ruby 2.2) and then it started working right. What i did was uninstall everything ruby and rails related, then reinstall following the tutorial again, and using ruby 2.2. made sure to add everything to my Path variable and it just worked that time.... still cannot get whenever -w to work though

dphuang2 commented 8 years ago

Change poke-api line in Gemfile to:

gem 'poke-go-api',
  git: "https://github.com/nabeelamjad/poke-api.git",
  tag: '0.1.0'

I believe this happens because of updates to the poke-api.