1
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

Deviceのeditで"wrong number of arguments (1 for 0)"

Posted at

「あれ?どうしたらいいの?」と思ったけど、とりあえずダメ元で

「"wrong number of arguments (1 for 0)" devise edit」
のワードで検索したら下記がヒット!感謝!

ようするに、authenticate_user! のオーバーライドの仕方が間違えているということでした。あぁ、そうか。そうだよね。

    def authenticate_user!(options={})
        super(options)
    end

stackoverflow(英語)はやっぱり凄いな。

1
1
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?