LoginSignup
7
7

More than 5 years have passed since last update.

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

Last updated at Posted at 2015-09-21

現象

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 %>
7
7
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
7
7