# Rails problems running rake and other tasks - undefined method \`action\_controller'

**URL:** <https://www.ruby-forum.com/t/rails-problems-running-rake-and-other-tasks-undefined-method-action-controller/184161>\
**Category:** Rails\
**Created:** [February 25, 2010, 8:41pm UTC](https://www.ruby-forum.com/t/rails-problems-running-rake-and-other-tasks-undefined-method-action-controller/184161 "2010-02-25T20:41:22Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Kristian](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/k/e8c25b/32.png) [@Kristian](https://www.ruby-forum.com/u/Kristian)\
**Post date:** [February 25, 2010, 8:41pm UTC](https://www.ruby-forum.com/t/rails-problems-running-rake-and-other-tasks-undefined-method-action-controller/184161/1 "2010-02-25T20:41:22Z")

</div>

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:in`invoke\_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:in`each’  
/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:in`standard\_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:in`block 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:in`run’  
/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:in`method\_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:in`class\_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?
