I am having loads of trouble adding layouts to my emails in rails 2.2.
I created a layout app/views/layouts/notifier.html.erb and this layout
was used for all my emails regardless of content type. All was well.
But I want to create a different layout for the different content
types (text/html, text/plain)
In which case I made app/views/layout/notifier.text.html.erb and app/
class Notifier < ActionMailer::Base
Now it won’t render either layout. I get the error
ActionView::MissingTemplate (Missing layout layouts/notifier.erb in
view path /home/rails/test/app/views:):
Has anyone got any ideas?? I’d be very grateful