出于什么原因,ActionMailer可以在生产中找不到模板,尽管能够在本地执行此操作?

时间:2015-09-17 15:45:32

标签: ruby-on-rails ruby debugging actionmailer

我只是在制作中收到此错误,这让我疯狂。

ActionView::MissingTemplateapp/mailers/project_mailer.rb:41 Missing template project_mailer/project_introduction with "mailer". Searched in: * "project_mailer"

第41行是以mail(

开头的行

应用/邮寄者/ project_mailer.rb

def project_introduction(project_introduction_id)
  @project_introduction = ProjectIntroduction.find(project_introduction_id)

  mail(
    to: @project_introduction.project.user.email,
    cc: [@project_introduction.user.email, @project_introduction.user.company.cc],
      subject: "Introduction to Your New Match, #{@project_introduction.user.company.name} for Project ##{@project_introduction.project_id}"
  )
end

我甚至将SSH投入生产并发现该视图存在于那里。

我还能看到什么?

0 个答案:

没有答案