0

我默认将一些文本添加到文本区域

%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() %>

但是,当我查看加载的页面时,我看到了这个

在此处输入图像描述

如何在段落之间添加段落或间距?

4

2 回答 2

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.

希望有帮助。

于 2012-10-30T20:21:50.497 回答
1

文本区域不能包含标记。如果您只需要演示而不需要输入,那么 div 应该可以。如果您想要演示和输入,您应该查看 RTE。

于 2012-10-30T20:20:58.657 回答