Skip to content


Subversion checkout URL

You can clone with
Download ZIP
Browse files

MailForm.template_root information on README.

  • Loading branch information...
commit ae07f21da2587c52e4b82a910517f6335a6b22cc 1 parent e2ec691
@josevalim josevalim authored
Showing with 8 additions and 0 deletions.
  1. +8 −0 README.rdoc
8 README.rdoc
@@ -191,6 +191,14 @@ several MailForm instances, using different templates.
Configure additional headers to your e-mail.
+==== MailForm.template_root
+MailForm by default is configured to use the template which comes with the gem.
+If you want to use another, you just need to configure MailForm template root
+to point to your application:
+ MailForm.template_root = File.join(Rails.root, "app", "views")
== I18n
I18n in MailForm works like in ActiveRecord, so all models, attributes and messages

0 comments on commit ae07f21

Please sign in to comment.
Something went wrong with that request. Please try again.