我正在使用grutter_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
但是什么都没有出现。帮助?!