class AccountsMailer < ActionMailer::Base
layout 'email'
...
end
Unfortunately rails seems to look for views/layouts/email.html.erb and
uses that layout for both my HTML and plain text emails. When I name
the file email.text.html.erb rails complains:
Missing layout layouts/email.erb ...
How do I set up action mailer so that it uses a layout only for the html
version of emails?
Thanks
--
Posted via http://www.ruby-forum.com/.