You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Just the relevant returned items:
/Users/jz/Documents/Github/SmallDollar/app/views/contact_mailer
/Users/jz/Documents/Github/SmallDollar/app/views/contact_mailer/application
/Users/jz/Documents/Github/SmallDollar/app/views/contact_mailer/application/approval_notification.html.erb
/Users/jz/Documents/Github/SmallDollar/app/views/contact_mailer/application/approval_notification.text.erb
I can confirm that it does work with original mail call.
A work around that we're using now is to explicitly call the view instead:
roadie_mail(etc.) do |format|
format.html {render 'contact_mailer/application/approval_notification'}
format.text {render 'contact_mailer/application/approval_notification'}
end
Has anyone encountered this issue with roadie rails? I fear it could just be my ineptitude as a developer but perhaps someone could lend an eye?
Issue: mail option for template_path is not being passed into roadie_mail
Tried it both in the mailer as
default :template_path => 'contact_mailer/application/'
and in roadie_mail call two ways
roadie_mail({:template_path => "contact_mailer/application/", :to => ...})
and
roadie_mail(:template_path => "contact_mailer/application/", :to => ...)
I get the error
ActionView::MissingTemplate: Missing template contact_mailer/approval_notification, base_mailer/approval_notification, application_mailer/approval_notification with {:locale=>[:en], :formats=>[:html], :variants=>[], :handlers=>[:raw, :erb, :html, :builder, :ruby, :coffee, :jbuilder]}. Searched in:
The text was updated successfully, but these errors were encountered: