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
16 Notes/ Hide
-
coalitiong9p liked this
-
victimms9 liked this
-
viewpointhg9d liked this
-
geraldinepk50 liked this
-
vandiverok3 liked this
-
mckelvey631 liked this
-
womainkee liked this
-
mangalcun liked this
-
edgar posted this