This is my code
mail(to: @profile.email, subject: 'Test mail ', template_path: 'mailer/user')
When using template_path:, the following error appears:
ActionView::MissingTemplate (Missing template user_mailer/order_success, application_mailer/order_success with {:locale=>[:en], :formats=>[:text], :variants=>[], :handlers=>[:raw, :erb, :html, :builder, :ruby, :mjml]})
How should I modify the mail template path?
This is my code
mail(to: @profile.email, subject: 'Test mail ', template_path: 'mailer/user')
When using template_path:, the following error appears:ActionView::MissingTemplate (Missing template user_mailer/order_success, application_mailer/order_success with {:locale=>[:en], :formats=>[:text], :variants=>[], :handlers=>[:raw, :erb, :html, :builder, :ruby, :mjml]})
How should I modify the mail template path?