This project is archived and is in readonly mode.
ActionController::Base.view_paths not used in ActionMailer deliver
-
Russell Quinn
Ahh.. yes.. ActionMailer uses ActionView and not ActionController to get its paths.
The template root can be set on an ActionMail derived model level, e.g.:
CaseinNotification.template_root = File.join(directory, 'app/views')
-
Ryan Bigg
- Assigned user set to Mikel Lindsaar
I gather this means that this is the solution to this problem then?
-
José Valim
- State changed from new to invalid
- Assigned user changed from Mikel Lindsaar to José Valim
You need to append the view paths in both ActionController and ActionMailer.