seyhunak/twitter-bootstrap-rails — Issue #111: undefined local variable or method `flash'
Author: jwoertink
Created: 2012-02-21 19:41:21+00:00
State: open

Just installed gem "twitter-bootstrap-rails", "~> 2.0.1.0"
$ rails g bootstrap:layout backend fixed

```text
Bootstrap helpers installs to application_helper...
insert app/helpers/application_helper.rb
(erb):67:in `block in template': undefined local variable or method `flash' for # (NameError)
from (erb):66:in `each'
from (erb):66:in `template'
from /Users/jeremywoertink/.rvm/rubies/ruby-1.9.2-p290/lib/ruby/1.9.1/erb.rb:753:in `eval'
from /Users/jeremywoertink/.rvm/rubies/ruby-1.9.2-p290/lib/ruby/1.9.1/erb.rb:753:in `result'
from /Users/jeremywoertink/.rvm/gems/ruby-1.9.2-p290@portal/gems/thor-0.14.6/lib/thor/actions/file_manipulation.rb:111:in `block in template'
from /Users/jeremywoertink/.rvm/gems/ruby-1.9.2-p290@portal/gems/thor-0.14.6/lib/thor/actions/create_file.rb:54:in `call'
from /Users/jeremywoertink/.rvm/gems/ruby-1.9.2-p290@portal/gems/thor-0.14.6/lib/thor/actions/create_file.rb:54:in `render'
from /Users/jeremywoertink/.rvm/gems/ruby-1.9.2-p290@portal/gems/thor-0.14.6/lib/thor/actions/create_file.rb:47:in `identical?'
from /Users/jeremywoertink/.rvm/gems/ruby-1.9.2-p290@portal/gems/thor-0.14.6/lib/thor/actions/create_file.rb:73:in `on_conflict_behavior'
from /Users/jeremywoertink/.rvm/gems/ruby-1.9.2-p290@portal/gems/thor-0.14.6/lib/thor/actions/empty_directory.rb:111:in `invoke_with_conflict_check'
from /Users/jeremywoertink/.rvm/gems/ruby-1.9.2-p290@portal/gems/thor-0.14.6/lib/thor/actions/create_file.rb:61:in `invoke!'
from /Users/jeremywoertink/.rvm/gems/ruby-1.9.2-p290@portal/gems/thor-0.14.6/lib/thor/actions.rb:95:in `action'
from /Users/jeremywoertink/.rvm/gems/ruby-1.9.2-p290@portal/gems/thor-0.14.6/lib/thor/actions/create_file.rb:26:in `create_file'
from /Users/jeremywoertink/.rvm/gems/ruby-1.9.2-p290@portal/gems/thor-0.14.6/lib/thor/actions/file_manipulation.rb:110:in `template'
from /Users/jeremywoertink/.rvm/gems/ruby-1.9.2-p290@portal/gems/twitter-bootstrap-rails-2.0.1/lib/generators/bootstrap/layout/layout_generator.rb:29:in `generate_layout'
from /Users/jeremywoertink/.rvm/gems/ruby-1.9.2-p290@portal/gems/thor-0.14.6/lib/thor/task.rb:22:in `run'
from /Users/jeremywoertink/.rvm/gems/ruby-1.9.2-p290@portal/gems/thor-0.14.6/lib/thor/invocation.rb:118:in `invoke_task'
from /Users/jeremywoertink/.rvm/gems/ruby-1.9.2-p290@portal/gems/thor-0.14.6/lib/thor/invocation.rb:124:in `block in invoke_all'
from /Users/jeremywoertink/.rvm/gems/ruby-1.9.2-p290@portal/gems/thor-0.14.6/lib/thor/invocation.rb:124:in `each'
from /Users/jeremywoertink/.rvm/gems/ruby-1.9.2-p290@portal/gems/thor-0.14.6/lib/thor/invocation.rb:124:in `map'
from /Users/jeremywoertink/.rvm/gems/ruby-1.9.2-p290@portal/gems/thor-0.14.6/lib/thor/invocation.rb:124:in `invoke_all'
from /Users/jeremywoertink/.rvm/gems/ruby-1.9.2-p290@portal/gems/thor-0.14.6/lib/thor/group.rb:226:in `dispatch'
from /Users/jeremywoertink/.rvm/gems/ruby-1.9.2-p290@portal/gems/thor-0.14.6/lib/thor/base.rb:389:in `start'
from /Users/jeremywoertink/.rvm/gems/ruby-1.9.2-p290@portal/gems/railties-3.2.1/lib/rails/generators.rb:170:in `invoke'
from /Users/jeremywoertink/.rvm/gems/ruby-1.9.2-p290@portal/gems/railties-3.2.1/lib/rails/commands/generate.rb:12:in `'
from /Users/jeremywoertink/.rvm/gems/ruby-1.9.2-p290@portal/gems/activesupport-3.2.1/lib/active_support/dependencies.rb:251:in `require'
from /Users/jeremywoertink/.rvm/gems/ruby-1.9.2-p290@portal/gems/activesupport-3.2.1/lib/active_support/dependencies.rb:251:in `block in require'
from /Users/jeremywoertink/.rvm/gems/ruby-1.9.2-p290@portal/gems/activesupport-3.2.1/lib/active_support/dependencies.rb:236:in `load_dependency'
from /Users/jeremywoertink/.rvm/gems/ruby-1.9.2-p290@portal/gems/activesupport-3.2.1/lib/active_support/dependencies.rb:251:in `require'
from /Users/jeremywoertink/.rvm/gems/ruby-1.9.2-p290@portal/gems/railties-3.2.1/lib/rails/commands.rb:29:in `'
from script/rails:6:in `require'
from script/rails:6:in `

'

```

I'm running
Rails 3.2.1
ruby 1.9.2p290 (2011-07-09 revision 32553) [x86_64-darwin10.8.0]