I use Sidekiq to asynchronously deliver my emails, but I had persistent errors in that you could not find the email template. This is consistent, as it works from time to time (for example, when I test). You can see that I even tried to specify the path and name of the template.
The error I get in Honeybadger: ActionView::MissingTemplate: Missing template signup_mailer/welcome_message with "mailer". Searched in: * "signup_mailer" ActionView::MissingTemplate: Missing template signup_mailer/welcome_message with "mailer". Searched in: * "signup_mailer"
app/mailers/signup_mailer.rb
class SignupMailer < ActionMailer::Base default from: ' hello@companycam.com ' def welcome_message(company, user) @company = company @user = user @web_url = root_url mail(to: @company.email, subject: 'Welcome to CompanyCam', template_path: 'signup_mailer', template_name: 'welcome_message') end end
You can see in the picture that there really is a view called welcome_message.html.erb , and the text version is also located in app/views/signup_mailer/ 
ruby-on-rails ruby-on-rails-5
Cwitty
source share