Qiita Teams that are logged in
You are not logged in to any team

Log in to Qiita Team
Community
OrganizationAdvent CalendarQiitadon (β)
Service
Qiita JobsQiita ZineQiita Blog
1
Help us understand the problem. What is going on with this article?
@ms2sato

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

More than 5 years have passed since last update.

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

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

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

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

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

1
Help us understand the problem. What is going on with this article?
Why not register and get more from Qiita?
  1. We will deliver articles that match you
    By following users and tags, you can catch up information on technical fields that you are interested in as a whole
  2. you can read useful information later efficiently
    By "stocking" the articles you like, you can search right away
ms2sato
何でも屋だが、最近はRails中心。JavaScript好き。レビューやタスク分解が多くて近頃仕事ではコード書けていない。仕事でもプライベートでもコラボできる人が常に欲しい人。 会社では人を育てるの中心で https://circlearound.co.jp/training/ こんなのやってます。 独り言はこっち https://ms2sato.circlearound.co.jp

Comments

No comments
Sign up for free and join this conversation.
Sign Up
If you already have a Qiita account Login
1
Help us understand the problem. What is going on with this article?