Forum: Ruby on Rails ActionMailer bug?

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.
A00673345921ae8c2e5570d1bd48b2e2?d=identicon&s=25 J. mp (lerias)
on 2007-02-27 02:34
Hi there,

I think I just found a bug in ActionMailer templates.

If in my email template I have in my fisrt line:

Hi <%=@user.name%>

rest of email
...


When I receive the email I get :


Hi <%=@user.name%>


But if I put the <%=@user.name%> in second line it works and replace the
<%=@user.name%> for the user.name value

Now I have to put in my template the following:

Hi

<%=@user.name%>,

rest of email

Is this a bug?
This topic is locked and can not be replied to.