我默认将一些文字添加到textarea
%textarea.email_copy
Hi <awesome friend>,
I am using this site called XXXX, and you should check it out. It is for smart and thoughtful people to share about their experiences and ideas around topics they care about, and I think you are perfect for it.
I generated a special invite for you:
http://some_link
<%= current_user.getFirstName() %>
然而,当我查看加载的页面时,我看到了这个
如何在段落之间添加段落或间距?
答案 0 :(得分:2)
点击此处:http://cheat.errtheblog.com/s/haml/
~ - Ruby expression preserving whitespace, e.g. %pre~ @content.body
Works just like =, but calls the find_and_preserve helper to keep
line breaks intact in the output.
希望有所帮助。
答案 1 :(得分:1)
textarea不能包含标记。如果你只想要演示而没有输入,div应该可以。如果您想要演示和输入,您应该查看RTE。