Andrew Kaspick
2006-Mar-18 02:15 UTC
[Rails] implicit template naming for multipart/alternative emails
Hello, I''ve been using edge rails for a while now and used the recipe from the new recipes book on using implicit file names for multipart/alternative messages. This seems to have recently broke. I''ve named by templates according to the book and the docs... # for example, if the following templates existed: # * signup_notification.text.plain.rhtml # * signup_notification.text.html.rhtml # * signup_notification.text.xml.rxml # * signup_notification.text.x-yaml.rhtml I''ve gone through the code and found that the rhtml part of the file is not appended to the template name due to existing .''s in the filename. When the code gets to File.read in ActionView the code fails as the file (ex. signup_notification.text.plain) does not exist (missing the template extension). Anybody having similar problems? Thanks -- Posted via http://www.ruby-forum.com/.
Possibly Parallel Threads
- Rails 2.0 ActionMailer breaks my redmine render_message
- Re: Train wreck getting render_to_string to work from foreign controller [SOLVED]
- Why is my rxml view being wrapped by the rhtml template in views/layouts?
- ActionMailer - ROR Recipes - Multipart/alternative
- ActionMailer Question -- can''t find email templates