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.
J. m. (Guest)
on 2007-02-27 03: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.