刘华佼的全栈学习记录

如何让xxx的description内容能够换行

| Comments

目标

让xxx的description内容能够换行

步骤:

app/views/xxxs/index.html.erb的<td><%= xxx.description %></td>
修改为<td><%= simple_format(xxx.description) %></td>

Comments

comments powered by Disqus