带有content_tag的Foundation 6警报消息

时间:2016-02-17 08:29:12

标签: ruby-on-rails ruby-on-rails-4 zurb-foundation

我正在使用Rail 4.2.5和Foundation 6.我试图关闭一条警告信息,但似乎没有以平稳的效果结束;它只是一个尖锐的结束。有效的原始html是:

text:ãã¯ã¹ ãã¯ãµã³ ãã¯ã¹ ãã¯ãµã³

在我的ãÂÂã¯ã¹ ãÂÂã¯ãµã³ ãÂÂã¯ã¹ ãÂÂã¯ãµã³中,我希望使用<div class="alert callout" data-closable> <h5>This is Important!</h5> <p>But when you're done reading it, click the close button in the corner to dismiss this alert.</p> <p>I'm using the default <code>data-closable</code> parameters, and simply fade out.</p> <button class="close-button" aria-label="Dismiss alert" type="button" data-close> <span aria-hidden="true">&times;</span> </button> </div> 复制:

application.html.erb

1 个答案:

答案 0 :(得分:1)

尝试使用:

<%= content_tag :div, class: "#{name} callout", :data => { :closable => '' }  do -%>