Hi, I had the same problem and just wanted to tell you: if you
uninstalled later it will come back so you'll have the same problem
probably.
4 solutions:
1. Removing later rake with gem uninstall rake -v=0.9.0
then make sure you change your Gemfile:
gem rake, '0.8.7' (use gem list to see if you have it)
The reason is: also if your system updates your rake (probably because
of installing another gem which requires that) your app will work.
2. Use $ bundle install vendor/gems
it will bundle all your gems used into your app. It also has some
caching benefits but maybe your app will be bigger.
http://stackoverflow.com/questions/3411522/how-do-i-freeze-gems-into-a-rails-3-application
3. Use the code snippet what Harry said (into your Rakefile):
module ::YourApplicationName
class Application
include Rake::DSL
end
end
4. Create app-specific gem environment with RVM Gemsets
http://beginrescueend.com/gemsets/basics/
Using $ bundle exec rake might avoid the problem but it definitely
doesn't solve it and next time will be the exact same problem.
Enjoy Rake:)
Zoli