【问题标题】:Devise 'Forgot password' error设计“忘记密码”错误
【发布时间】:2012-01-07 22:53:02
【问题描述】:

我正在为我的 rails 3 应用程序使用设计,当我点击忘记密码,输入电子邮件并点击提交时,我收到错误

undefined method `successfully_sent?' for #<Devise::PasswordsController:0xac17e74>

我在初始化器中的 devise.rb 中取消了 config.mailer = "Devise::Mailer" 行的注释 我也放了

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

在开发中.rb

请帮忙!

【问题讨论】:

    标签: ruby-on-rails-3 devise


    【解决方案1】:

    当我将 Dvise 的版本从 1.4.8 更新到 1.5.2 时,我遇到了同样的错误。

    降级到1.4.8后,忘记密码功能正常。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 2013-10-20
      • 2012-06-09
      • 2015-06-10
      • 2012-02-16
      • 2020-04-18
      • 1970-01-01
      • 2012-07-25
      相关资源
      最近更新 更多