【发布时间】:2012-08-20 12:26:04
【问题描述】:
我正在使用gritter_notices gem 将闪光警报替换为咆哮式通知。就呈现在 HTML 中的这段代码而言,我已经知道了:
<script type="text/javascript">
//<![CDATA[
jQuery.gritter.add({image:'/assets/success.png',title:'Success',text:'Record was successfully saved.'});
//]]>
</script>
这个在 application.html.haml
= gflash
= gritter_flash_messages
= yield
= javascript_include_tag "application"
= include_gritter
但是什么都没有出现。救命?!
【问题讨论】:
标签: jquery ruby-on-rails cdata growl