我試圖在由Devise郵件發送的確認頁面中顯示用戶密碼。確認頁面是默認設計確認頁面顯示用戶密碼頁
Welcome [email protected]!
You can confirm your account email through the link below:
Confirm my account
不過,我希望有
Welcome [email protected]!
Your password is currently DASADSADS
You can confirm your account email through the link below:
Confirm my account
如何訪問用戶對象的看法?我是否需要用自定義函數覆蓋郵件控制器?如果是這樣,我該如何告訴當前郵件程序的做法(嘗試查看文檔,但找不到任何線索)?
我注意到@email和@resource在視圖中使用。我可以使用其中的任何一種訪問當前密碼的非哈希形式嗎?
請注意,我用user.find(1).send_confirmation_instructions
http://i.imgur.com/3w3XvGU.jpg – 2013-04-03 19:04:32