Using ActionMailer layouts to set the layout for devise_mailer ? Or a way to set a html layout for actionmailer, possible?
132 views
Skip to first unread message
rubybox
unread,
Jun 6, 2010, 12:26:22 PM6/6/10
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
Copy link
Report message as abuse
Sign in to report message as abuse
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to Devise
Would it be possible without changing code in the gem files to set a
layout for the ActionMailer?
Normally one would set in the ActionMailer controller something like
layout "email"
Then have a email.erb.html file inside /shared/layouts so that you
have 1 html layout and include your mail texts inside that.
Is there a way to have with devise:
1) A html template for all mails that devise sends out where the
content of the mails gets inserted
2) A way to store the texts for the mails send out being saved in
file.plain.erb?
I really hate to have to edit all html mails everytime I change
something in the layout
Thanks
rubybox
unread,
Jun 7, 2010, 8:15:15 AM6/7/10
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
Copy link
Report message as abuse
Sign in to report message as abuse
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to Devise
Nobody knows?
It must be possible with Devise?
José Valim
unread,
Jun 7, 2010, 8:16:59 AM6/7/10
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message as abuse
Sign in to report message as abuse
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to plataforma...@googlegroups.com
The same as you would do with a controller. Inside config/environment.rb: