开发者

Rails 3 devise i need help with confermation

开发者 https://www.devze.com 2023-02-12 14:25 出处:网络
I have watched the railscast on devise for some开发者_如何学JAVA reason he pulled out the confrmation e-mail part so i have no idea how it works i have it up and running but what i need to know is dos

I have watched the railscast on devise for some开发者_如何学JAVA reason he pulled out the confrmation e-mail part so i have no idea how it works i have it up and running but what i need to know is dose it send an e-mail in development or not?

is there a way to force it to send the mail just to test it or can you enplane how to do it in the console!


it doesn't send email on development environment. You need to edit your config/environments/development.rb and add :

  config.action_mailer.default_url_options = { :host => 'localhost:3000' }

Then look in your console running your server when it try to send an email you will see actually all what your need there (headers, title and body email)

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号