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
Help us understand the problem. What is going on with this article?

deviseの認証メール本文のリンクで ActionController::UnknownFormat

More than 5 years have passed since last update.

現象

deviseの認証メールの本文のリンクをクリックしたらActionController::UnknownFormatが発生した。

生成されたリンク:
http://localhost:3000/users/confirmation.5?confirmation_token=xxxxx

対策

app/views/devise/mailer/confirmation_instructions.html.erb

<%= link_to 'メールアドレスの変更を承認する',
            user_confirmation_url(@resource, confirmation_token: @token) %>

<%= link_to 'メールアドレスの変更を承認する',
            controller: 'devise/confirmations',
            action: 'create',
            confirmation_token: @token %>
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