Skip to content

Instantly share code, notes, and snippets.

@ukoasis
Created February 2, 2017 09:46
Show Gist options
  • Save ukoasis/57cbfcfd84a28a7e336adfecb4bc6deb to your computer and use it in GitHub Desktop.
Save ukoasis/57cbfcfd84a28a7e336adfecb4bc6deb to your computer and use it in GitHub Desktop.
Deviseでconfirmableの登録確認メールを受け取れない場合に登録を完了させる方法 ref: http://qiita.com/ukoasis/items/e8dc35e1be582be260ce
> 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 fooooo+test5@test.cdd (4.1ms)
Date: Thu, 02 Feb 2017 17:36:46 +0900
From: please-change-me-at-config-initializers-devise@example.com
Reply-To: please-change-me-at-config-initializers-devise@example.com
To: fooooo+test5@test.cdd
Message-ID: <5892ef9eb1cea_1f423fd11ec464fc438b8@fooooo.mail>
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>ようこそ、fooooo+test5@test.cddさん!</p><p>次のリンクでメールアドレスの確認が完了します:</p>
<p>
<a href=\"http://localhost:3000/users/confirmation?confirmation_token=xxxxxxxxxxxxxxxx&amp;locale=ja\">アカウント確認</a>
↑このURLをコピーして、ブラウザで開く
</p>">          
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment