【发布时间】:2014-09-12 16:32:32
【问题描述】:
我正在尝试使用 growlflash 并根据文档设置所有内容。 https://github.com/estum/growlyflash
我在渲染的 partial.html.haml 中有这一行
#header_message
= growlyflash_static_notices
该部分是从我的 application.html.haml 加载的
= render 'shared/app_responsive_header'
但是当部分加载时,我得到这个错误
undefined local variable or method `growlyflash_static_notices' for #<#<Class:0x007fe7fb09bd80>:0x007fe7fe889df0>
我渲染部分错误吗?为什么我不能让它工作。
【问题讨论】:
标签: ruby-on-rails ruby gem haml