0
我創建/一個標誌設計一種用於我的應用程序的軌道,我想只是發送的歡迎,但沒有可證實或重定向電子郵件,紅寶石軌發送電子郵件申請後與色器件沒有可證實
「設計:可確定的,...
has_many :emails
delegate :confirmation_sent_at, :confirmed_at, :confirmation_token, to: :primary_email
def primary_email
emails.primary || (emails.first if new_record?)
end"
我讀色器件的文檔,但我沒有找到(或理解),我的回答
THX的幫助我在社區和Don」新。不會說英語。
你得到了什麼錯誤diid? – uzaif
在用戶模型中發送郵件'after_create:send_welcome_mail'並且寫入模型的'send_welcome_mail'方法中發送的郵件的代碼 – uzaif