hggeorgiev/rails-jwt-auth-tutorial

ArgumentError (wrong number of arguments (given 2, expected 0))

OrrYakobi opened this issue · 1 comments

I followed the guide and implemented everything as the guide did.

I get this error:

ArgumentError (wrong number of arguments (given 2, expected 0)):
  
app/controllers/authentication_controller.rb:5:in `authenticate'

When I call:

$ curl -H "Content-Type: application/json" -X POST -d '{"email":"example@mail.com","password":"123"}' http://localhost:3000/authenticate

Hello @OrrYakobi ,
This is because the tutorial is outdated and you've probably installed newer versions of them. If you'd like to update the tutorial and its dependencies, feel free to open a PR.