提交 6eb4271d 编写于 作者: M Malcolm Locke

Action mailer can take an array for template_dir

上级 3c580182
......@@ -293,7 +293,7 @@ class UserMailer < ActionMailer::Base
end
```
In this case it will look for templates at `app/views/notifications` with name `another`.
In this case it will look for templates at `app/views/notifications` with name `another`. You can also specify an array of paths for `template_path`, and they will be searched in order.
If you want more flexibility you can also pass a block and render specific templates or even render inline or text without using a template file:
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册