From e9a8e0053be3b293ab89fb584f1d660063f107aa Mon Sep 17 00:00:00 2001 From: Pratik Naik Date: Sun, 31 Aug 2008 19:11:15 +0100 Subject: 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. --- actionmailer/test/fixtures/layouts/auto_layout_mailer.html.erb | 1 + 1 file changed, 1 insertion(+) create mode 100644 actionmailer/test/fixtures/layouts/auto_layout_mailer.html.erb (limited to 'actionmailer/test/fixtures/layouts/auto_layout_mailer.html.erb') diff --git a/actionmailer/test/fixtures/layouts/auto_layout_mailer.html.erb b/actionmailer/test/fixtures/layouts/auto_layout_mailer.html.erb new file mode 100644 index 0000000000..932271450c --- /dev/null +++ b/actionmailer/test/fixtures/layouts/auto_layout_mailer.html.erb @@ -0,0 +1 @@ +Hello from layout <%= yield %> \ No newline at end of file -- cgit v1.2.3