私はRails 4アプリケーションをセットアップして、deviseメーラーがPostmarkテンプレートを使ってPostmarkを送信する方法を理解しようとしています。Rails、Devise、Postmark Gem - deviseメーラーのポストマークテンプレートの使用
私の宝石ファイルには郵便受けの宝石があります。
確認欄に郵便番号を記入する方法がわからないことを除いて、私はすべて機能しています。私が追加した
<%= link_to 'Confirm my account', confirmation_url(@resource, confirmation_token: @token) %></div>
:
To get started, please confirm your account below:
action_url_Value
私が代わりにアクションURL値のテンプレートに以下の行を配置する方法を見つけ出すことはできません:消印で
私は、このテンプレートを持っています私の初期化子/ devise.rbに次postmark_devise_mailer.rbでconfig.mailer = 'PostmarkDeviseMailer'
、私が持っている:
class PostmarkDeviseMailer < ActionMailer::Base
include Devise::Mailers::Helpers
def message
mail(
:subject => 'Hello from Postmark',
:to => '[email protected]',
:from => '[email protected]',
:html_body => '<strong>Hello</strong> dear Postmark user.',
:track_opens => 'true')
end
end
default from: "[email protected]"
def confirmation_instructions(record)
devise_mail(record, :confirmation_instructions)
end
def reset_password_instructions(record)
devise_mail(record, :reset_password_instructions)
end
def unlock_instructions(record)
devise_mail(record, :unlock_instructions)
end
次の手順はわかりにくいです。誰も小切手取引電子メールのメーラーとしてPostmarkテンプレートを使用する方法を考え出しましたか?