我将twitter-bootstrap-rails(2.0.1)添加到我的gemfile中,然后运行“捆绑安装”。接下来我运行“rails g bootstrap:install”,一切都很好。要生成布局,我做了以下并得到一个错误:Twitter引导轨错误。 “未定义的局部变量或方法`闪光灯”
My-MacBook-Pro:todo my$ rails g bootstrap:layout application fixed
Bootstrap helpers installs to application_helper...
insert app/helpers/application_helper.rb
create app/views/layouts/application.html.haml
(erb):67:in `block in template': undefined local variable or method `flash' for #<Bootstrap::Generators::LayoutGenerator:0x00000102bb2c10> (NameError)
from (erb):66:in `each'
from (erb):66:in `template'
from /Users/my/.rvm/rubies/ruby-1.9.3-p0/lib/ruby/1.9.1/erb.rb:838:in `eval'
我该如何照顾?我正在运行rails 3.2.1,ruby 1.9.3p0,并使用'haml-rails'。
打开GitHub上存储库的问题吗? – shingara 2012-02-21 09:01:23