diff options
author | Pratik Naik <pratiknaik@gmail.com> | 2008-08-31 19:11:15 +0100 |
---|---|---|
committer | Pratik Naik <pratiknaik@gmail.com> | 2008-08-31 19:17:42 +0100 |
commit | e9a8e0053be3b293ab89fb584f1d660063f107aa (patch) | |
tree | 045661abc41c4cc5123735702d57f6897a3787c1 /actionmailer/test/fixtures/explicit_layout_mailer | |
parent | 7ce03db77884e21256ba8f1615ad8dd841b76b86 (diff) | |
download | rails-e9a8e0053be3b293ab89fb584f1d660063f107aa.tar.gz rails-e9a8e0053be3b293ab89fb584f1d660063f107aa.tar.bz2 rails-e9a8e0053be3b293ab89fb584f1d660063f107aa.zip |
Add layout functionality to mailers.
Mailer layouts behaves just like controller layouts, except layout names need to
have '_mailer' postfix for them to be automatically picked up.
Diffstat (limited to 'actionmailer/test/fixtures/explicit_layout_mailer')
-rw-r--r-- | actionmailer/test/fixtures/explicit_layout_mailer/logout.html.erb | 1 | ||||
-rw-r--r-- | actionmailer/test/fixtures/explicit_layout_mailer/signup.html.erb | 1 |
2 files changed, 2 insertions, 0 deletions
diff --git a/actionmailer/test/fixtures/explicit_layout_mailer/logout.html.erb b/actionmailer/test/fixtures/explicit_layout_mailer/logout.html.erb new file mode 100644 index 0000000000..0533a3b2fe --- /dev/null +++ b/actionmailer/test/fixtures/explicit_layout_mailer/logout.html.erb @@ -0,0 +1 @@ +You logged out
\ No newline at end of file diff --git a/actionmailer/test/fixtures/explicit_layout_mailer/signup.html.erb b/actionmailer/test/fixtures/explicit_layout_mailer/signup.html.erb new file mode 100644 index 0000000000..4789e888c6 --- /dev/null +++ b/actionmailer/test/fixtures/explicit_layout_mailer/signup.html.erb @@ -0,0 +1 @@ +We do not spam
\ No newline at end of file |