Ruby on rails Redmine应用程序的电子邮件配置错误

Ruby on rails Redmine应用程序的电子邮件配置错误,ruby-on-rails,ruby-on-rails-3,sendmail,redmine,Ruby On Rails,Ruby On Rails 3,Sendmail,Redmine,我的配置文件包含以下代码: production: email_delivery: delivery_method: :sendmail development: email_delivery: delivery_method: :sendmail 但在生产模式下运行Redmine应用程序时,我仍然会遇到以下错误 NoMethodError (undefined method `error' for 0:Fixnum): app/models

我的配置文件包含以下代码:

production:
    email_delivery:
       delivery_method: :sendmail
development:
    email_delivery:
       delivery_method: :sendmail
但在生产模式下运行Redmine应用程序时,我仍然会遇到以下错误

  NoMethodError (undefined method `error' for 0:Fixnum):
  app/models/mailer.rb:431:in `deliver_mail'
  app/models/mailer.rb:86:in `block (2 levels) in deliver_issue_edit'
  app/models/issue.rb:826:in `each_notification'
  app/models/mailer.rb:85:in `block in deliver_issue_edit'
  app/models/journal.rb:77:in `block in each_notification'
  app/models/journal.rb:75:in `each'
  app/models/journal.rb:75:in `each_notification'
  app/models/mailer.rb:84:in `deliver_issue_edit'
  app/models/journal.rb:190:in `send_notification'
  app/models/journal.rb:54:in `save'
  app/models/issue.rb:1515:in `create_journal'
  app/models/issue.rb:165:in `create_or_update'
  app/controllers/issues_controller.rb:478:in `block in save_issue_with_child_records'
  app/controllers/issues_controller.rb:466:in `save_issue_with_child_records'
  app/controllers/issues_controller.rb:188:in `update'
我不知道为什么会出现这个错误,我还根据Redmine文档和action mailer配置检查了配置。我还是不知道原因。
有人遇到过类似的问题吗?

您是否只是在配置文件中发布了电子邮件配置部分的标题,或者这些是您唯一的设置?电子邮件配置部分应如下所示:

production:  
 email_delivery:  
  delivery_method: :smtp
   smtp_settings:
   address: smtp.example.net
   port: 25
   domain: example.net
   authentication: :login
   user_name: redmine@example.net
   password: redmine

参考Redmine。

实际上,配置按预期工作,但我在Redmine中创建问题时遇到了问题。在评论了raise excpetion line之后,它工作得很顺利。