Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

wrong number of arguments (1 for 0): in DeviseTokenAuth::RegistrationsController#create #274

Closed
jdkealy opened this issue Jun 23, 2015 · 0 comments

Comments

@jdkealy
Copy link

jdkealy commented Jun 23, 2015

Started POST "/api/auth" for 127.0.0.1 at 2015-06-23 14:35:59 -0400
Processing by DeviseTokenAuth::RegistrationsController#create as /
Parameters: {"email"=>"[email protected]", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]", "confirm_success_url"=>"http://revv.bla:3000/test"}
Unpermitted parameters: confirm_success_url
Unpermitted parameters: confirm_success_url
(1.1ms) BEGIN
User Exists (1.0ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = '[email protected]' LIMIT 1
User Load (1.2ms) SELECT "users".* FROM "users" WHERE "users"."confirmation_token" = 'a2a32c1273b349b56eb88172fc012dfa293fa72151774006b249cc36597a85a1' ORDER BY "users"."id" ASC LIMIT 1
SQL (0.7ms) INSERT INTO "users" ("confirmation_sent_at", "confirmation_token", "created_at", "email", "encrypted_password", "provider", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" ["confirmation_sent_at", "2015-06-23 18:35:59.430526"], ["confirmation_token", "a2a32c1273b349b56eb88172fc012dfa293fa72151774006b249cc36597a85a1"], ["created_at", "2015-06-23 18:35:59.428608"], ["email", "[email protected]"], ["encrypted_password", "$2a$10$fegOo/UVBISEzRNZMd.mjeUTSmDxIdxIHLXC8K9TilYChgLRvQZla"], ["provider", "email"], ["updated_at", "2015-06-23 18:35:59.428608"] COMMIT
Completed 500 Internal Server Error in 75ms

ArgumentError - wrong number of arguments (1 for 0):
devise_token_auth (0.1.30) app/controllers/devise_token_auth/registrations_controller.rb:35:in create' actionpack (4.1.4) lib/action_controller/metal/implicit_render.rb:4:insend_action'
actionpack (4.1.4) lib/abstract_controller/base.rb:189:in `process_action'

Using:
devise_token_auth-0.1.30
devise-3.5.1

Mounting

class ApiController < ActionController::Base
    include DeviseTokenAuth::Concerns::SetUserByToken
@jdkealy jdkealy closed this as completed Jun 23, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant