ruby-on-rails-3 – 任何人都知道rails 3.2的私人消息宝石好吗?
发布时间:2020-12-17 03:35:56 所属栏目:百科 来源:网络整理
导读:我花了一天时间来弄清楚如何通过设计在注册会员之间建立良好的信息系统. 但在所有情况下,这些宝石都已过时,并且它们不支持rails3. 如果你们正在尝试制作包含这些功能的系统. 你是怎么做的? 会员注册(设计) 私人消息系统(带有收件邮件) 解决方法 https://git
我花了一天时间来弄清楚如何通过设计在注册会员之间建立良好的信息系统.
但在所有情况下,这些宝石都已过时,并且它们不支持rails3. 如果你们正在尝试制作包含这些功能的系统. >会员注册(设计) 解决方法
https://github.com/ging/mailboxer?
/config/initializer/mailboxer.rb: Mailboxer.setup do |config| config.uses_emails = true config.default_from = "no-reply@youraddress.com" end 最小的模型 class User < ActiveRecord::Base devise :database_authenticatable,:registerable,:recoverable,:rememberable,:trackable,:validatable acts_as_messageable attr_accessible :email,:password,:password_confirmation,:remember_me def name email end def mailboxer_email(object) email end end 当然还有starndard邮件配置. (编辑:李大同) 【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容! |