Avatar Edgar González

  • Random
  • Archive
  • RSS

rake aborted! undefined method `task’ in rails 3.0.7

If you are getting this error when you run any rake task in rails 3.0.7:

$ rake
rake aborted!
undefined method `task' for #MyApp::Application:0x92113b6c

The problem is rake 0.9.0. The simple fix is temporarily downgrade rake in order to avoid it:

$ gem uninstall rake -v 0.9
$ gem install rake -v 0.8.7

Then, edit the Gemfile and add the line:

gem 'rake', '0.8.7'

And run the command:

$ bundle update
    • #ruby
    • #rake
    • #gemfile
    • #error
    • #downgrade
    • #rails
  • 1 year ago
  • 16
  • Comments
  • Permalink
  • Share
    Tweet

16 Notes/ Hide

  1. coalitiong9p liked this
  2. victimms9 liked this
  3. viewpointhg9d liked this
  4. geraldinepk50 liked this
  5. vandiverok3 liked this
  6. mckelvey631 liked this
  7. womainkee liked this
  8. mangalcun liked this
  9. edgar posted this

Recent comments

Blog comments powered by Disqus
← Previous • Next →

Portrait/Logo

About

When I'm not spending time with Jessica and my kids, I build web applications. Rails developer, believer of Agile Development and Lean startups. NoSQL enthusiast.
CTO and Lord of the API at Piictu

Me, Elsewhere

  • @edgar on Twitter
  • Facebook Profile
  • edgargonzaleznetve on Youtube
  • egg on Flickr
  • edgar on Foursquare
  • My Skype Info
  • Linkedin Profile
  • edgar on github

Twitter

loading tweets…

  • RSS
  • Random
  • Archive
  • Mobile

Effector Theme by Carlo Franco.

Powered by Tumblr