Forum: Ruby on Rails How to use a partial in multipart/alternative emails (HTML and plain text)

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
460ead051b49c0b2a8e45e46252d4bda?d=identicon&s=25 Tom Ha (tom)
on 2010-12-06 17:36
Hi there,

I use a partial in various multipart emails (HTML and plain text) in
Rails and have the following problem with it:

- All email "views" exist normally: both in .text.plain.erb and
.text.html.erb versions

- The partial (which is located in the "shared" views folder), also
exists in both versions using the required endings (as mentioned above).

The problem: In the "plain text" version of the received emails, it is
the HTML partial that is rendered, not the "plain text" one. (Everything
else is rendered correctly in both versions.)

What am I probably doing wrong?

Thanks a bunch for any help with this!
Tom
460ead051b49c0b2a8e45e46252d4bda?d=identicon&s=25 Tom Ha (tom)
on 2010-12-08 14:57
No ideas at all?

(Am I the only one with this problem?)
This topic is locked and can not be replied to.