Rails problems running rake and other tasks - undefined method `action_controller'

I suddenly have a major problem in all my Rails 3 apps:

$ rake db:migrate --trace
rake aborted!
Don’t know how to build task ‘db:migrate’
/Users/kristianconsult/.rvm/gems/ruby-1.9.1-p378/gems/rake-0.8.7/lib/
rake.rb:1728:in []' /Users/kristianconsult/.rvm/gems/ruby-1.9.1-p378/gems/rake-0.8.7/lib/ rake.rb:2050:ininvoke_task’
/Users/kristianconsult/.rvm/gems/ruby-1.9.1-p378/gems/rake-0.8.7/lib/
rake.rb:2029:in block (2 levels) in top_level' /Users/kristianconsult/.rvm/gems/ruby-1.9.1-p378/gems/rake-0.8.7/lib/ rake.rb:2029:ineach’
/Users/kristianconsult/.rvm/gems/ruby-1.9.1-p378/gems/rake-0.8.7/lib/
rake.rb:2029:in block in top_level' /Users/kristianconsult/.rvm/gems/ruby-1.9.1-p378/gems/rake-0.8.7/lib/ rake.rb:2068:instandard_exception_handling’
/Users/kristianconsult/.rvm/gems/ruby-1.9.1-p378/gems/rake-0.8.7/lib/
rake.rb:2023:in top_level' /Users/kristianconsult/.rvm/gems/ruby-1.9.1-p378/gems/rake-0.8.7/lib/ rake.rb:2001:inblock in run’
/Users/kristianconsult/.rvm/gems/ruby-1.9.1-p378/gems/rake-0.8.7/lib/
rake.rb:2068:in standard_exception_handling' /Users/kristianconsult/.rvm/gems/ruby-1.9.1-p378/gems/rake-0.8.7/lib/ rake.rb:1998:inrun’
/Users/kristianconsult/.rvm/rubies/ruby-1.9.1-p378/bin/rake:36:in
`’

$ rake --trace
** Invoke default (first_time)
** Invoke test (first_time)
** Execute test
** Invoke test:units (first_time)
** Invoke test:functionals (first_time)
** Invoke test:integration (first_time)
Errors running test:units, test:functionals, test:integration!

$ bundle exec cucumber
undefined method action_controller' for #<Rails::Application::Configuration:0x00000102d3b470> (NoMethodError) /Users/kristianconsult/.rvm/gems/ruby-1.9.1-p378/bundler/gems/ rails-16a5e918a06649ffac24fd5873b875daf66212ad-master/railties/lib/ rails/configuration.rb:74:inmethod_missing’
/Users/kristianconsult/Development/Languages/Ruby/Apps/playground/
Rails3_apps/railsblog_cucumber_capybara/config/environments/test.rb:
15:in block in <top (required)>' /Users/kristianconsult/Development/Languages/Ruby/Apps/playground/ Rails3_apps/railsblog_cucumber_capybara/config/environments/test.rb: 1:inclass_eval’
/Users/kristianconsult/Development/Languages/Ruby/Apps/playground/
Rails3_apps/railsblog_cucumber_capybara/config/environments/test.rb:
1:in `<top (required)>’

Any ideas out there? I uninstalled bundler 0.9.8 coz it seemed to be
broken?

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs