Upgrade rails.
Add rake to Gemfile.