2012-02-21 11 views
1

gemfileにtwitter-bootstrap-rails(2.0.1)を追加し、" bundle install "を実行しました。次に、「レールgブートストラップ:インストール」を実行し、すべてうまくいった。私は次のことを行なったし、エラーを得たレイアウト生成するには:Twitterのブートストラップレールエラーです。 "未定義のローカル変数またはメソッド` flash '"

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' 

をどのように私はこれの世話をするのですか?私はレール3.2.1、ルビ1.9.3p0を実行していて、 'haml-rails'を使っています。

+0

であなたのGemfileはgithubのリポジトリ上の問題を開きますか? – shingara

答えて

2

更新

gem 'twitter-bootstrap-rails', :git => 'http://github.com/seyhunak/twitter-bootstrap-rails.git'

+3

これを実行した後、私はまた、仕事のために 'group:assets'から宝石を取り除かなければなりませんでした:https://github.com/seyhunak/twitter-bootstrap-rails/issues/338#issuecomment-17107619。 –

+0

パーフェクト!働いた –

関連する問題