[Ruby on Rails][Haml] Use Backslashes for Line Breaks in Text Mail

Tadashi Shigeoka ·  Tue, March 5, 2013

In Ruby on Rails + Haml, to create line breaks in text mail, use backslashes.

Dear
= @user.name,
\\
Your username is
= @user.username
\\
\\
\\
\\
Your status is
= @user.status

[Reference]:HAML: Line breaks in text mail

That’s all from the Gemba.