Code Monkey home page Code Monkey logo

Comments (11)

tooooolong avatar tooooolong commented on June 11, 2024

devise 好像自带

from 19wu.

saberma avatar saberma commented on June 11, 2024

@ShawnYu devise 是有带这个功能,但为了让每个功能尽量细化,就分成多个 issue 去做。

from 19wu.

tooooolong avatar tooooolong commented on June 11, 2024

got it

from 19wu.

richard-ma avatar richard-ma commented on June 11, 2024

这部分的邮件服务器参数如何配置啊?还是只给最终用户一个模版,让用户自己修改配置?

from 19wu.

saberma avatar saberma commented on June 11, 2024

@richard-ma 你指的邮件服务器参数是

config.action_mailer.default_url_options = { :host => "example.com" }

还是

config.action_mailer.delivery_method = :smtp
config.action_mailer.smtp_settings = { ... }

from 19wu.

richard-ma avatar richard-ma commented on June 11, 2024

在development环境里设置的
config.action_mailer.default_url_options = { :host => "127.0.0.1:3000" }

from 19wu.

richard-ma avatar richard-ma commented on June 11, 2024

@saberma 这部分代码有些我理解错了,已经删除了这个分支,我会重写一份。

另外devise的mailer还需要写测试吗?rspec对mailer的测试有没有好的教程可以推荐?

from 19wu.

saberma avatar saberma commented on June 11, 2024

简单测试只测待发数组中是否有新记录

ActionMailer::Base.deliveries.empty?.should be_false

详细测试类似

 email = FooMailer.send().deliver
 email.subject.should eql "19屋 激活邮件\n"
 email.body.should include('尊敬的马海波')

@windy 有没有补充的

from 19wu.

saberma avatar saberma commented on June 11, 2024

@richard-ma 看下 @doitian 的这个 PR #122 ,加入了 Setting 配置,也包括 email 的。

from 19wu.

richard-ma avatar richard-ma commented on June 11, 2024

@saberma 好的

from 19wu.

saberma avatar saberma commented on June 11, 2024

@windy 注册功能已经由 @richard-ma 完成,你另起三个待领任务

  • 邮件激活帐号
  • 用户帐号修改页面
  • 用户上传头像

from 19wu.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.