ruby on rails - Uninitialized constant Bandit::Engine -
i have rails 3.2, ruby 1.9 app i'm attempting setup bandit gem.
i've bundled installed gem, run bandit:install
, modified bandit.yml
(for development) values of round_robin
, memory
.
however, attempts start dev server (rails s
) result in following error:
/users/michaelbuckbee/sites/bshapp/config/routes.rb:148:in `block in ': uninitialized constant bandit::engine (nameerror) /users/michaelbuckbee/.rvm/gems/ruby-1.9.3-p0@bshapp/gems/actionpack-3.2.12/lib/action_dispatch/routing/route_set.rb:282:in `instance_exec' /users/michaelbuckbee/.rvm/gems/ruby-1.9.3-p0@bshapp/gems/actionpack-3.2.12/lib/action_dispatch/routing/route_set.rb:282:in `eval_block' /users/michaelbuckbee/.rvm/gems/ruby-1.9.3-p0@bshapp/gems/actionpack-3.2.12/lib/action_dispatch/routing/route_set.rb:260:in `draw' /users/michaelbuckbee/sites/bshapp/config/routes.rb:1:in `'
if remove bandit::engine
line routes.rb
, go rails console can create bandit experiments.
i followed instructions on bandit readme , got same error. latest tagged version @ time bandit-0.1.0
; bundler install if don't specify options gem 'bandit'
. suspect you're using same version. looking @ source of version, bandit::engine
not exist. appear included in bandit head, on commit 4c552c1efa @ time. bundling head fixed problem me.
so, add following in gemfile, bundle install, , retry server:
gem 'bandit', :git => "git://github.com/bmuller/bandit.git"
Comments
Post a Comment