【发布时间】:2012-09-16 18:37:55
【问题描述】:
来自Twitter Bootstrap modal rails delete button not working
如何传递 html 代码以在 Twitter Bootstrap 模式中显示?这是链接
<%= link_to t('delete'), post, method: :delete, confirm: t('delete_this_question'), 'data-my-message' => raw(post.text), class: 'label' %>
post.text 是 HTML 代码。现在它以错误的格式显示链接。
谢谢
【问题讨论】:
标签: ruby-on-rails twitter-bootstrap