Created
February 2, 2017 09:46
-
-
Save ukoasis/57cbfcfd84a28a7e336adfecb4bc6deb to your computer and use it in GitHub Desktop.
Deviseでconfirmableの登録確認メールを受け取れない場合に登録を完了させる方法 ref: http://qiita.com/ukoasis/items/e8dc35e1be582be260ce
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
> User.find(1).send_confirmation_instructions.body | |
(0.2ms) BEGIN | |
(0.2ms) COMMIT | |
Rendering devise/mailer/confirmation_instructions.html.slim | |
Rendered devise/mailer/confirmation_instructions.html.slim (0.6ms) | |
Devise::Mailer#confirmation_instructions: processed outbound mail in 115.8ms | |
Sent mail to [email protected] (4.1ms) | |
Date: Thu, 02 Feb 2017 17:36:46 +0900 | |
From: [email protected] | |
Reply-To: [email protected] | |
To: [email protected] | |
Message-ID: <[email protected]> | |
Subject: xxxxx | |
Mime-Version: 1.0 | |
Content-Type: text/html; | |
charset=UTF-8 | |
Content-Transfer-Encoding: base64 | |
xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx | |
xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx | |
xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx | |
xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx | |
xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx | |
xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx | |
=> #<Mail::Body:0x007fa246f96100 | |
@boundary=nil, | |
@charset=nil, | |
@encoding="8bit", | |
@epilogue=nil, | |
@part_sort_order=["text/plain", "text/enriched", "text/html"], | |
@parts=[], | |
@preamble=nil, | |
@raw_source= | |
"<p>ようこそ、[email protected]さん!</p><p>次のリンクでメールアドレスの確認が完了します:</p> | |
<p> | |
<a href=\"http://localhost:3000/users/confirmation?confirmation_token=xxxxxxxxxxxxxxxx&locale=ja\">アカウント確認</a> | |
↑このURLをコピーして、ブラウザで開く | |
</p>"> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment