If you know what the title of this post means, I’m sorry you are having trouble running rake in your rails project. If you have no idea what I’m saying, consider yourself lucky and move on.

Not a big deal, in the end, but just another pain in the butt that needs fixing. While updating my project from rails 2.0 to 2.3.2 I was greeted, right on cue, with exactly what I expected: an error. Rails is great but it can be love-hate sometimes.

Turns out that when running rake rails:update, to update to rails version 2.3.2, the new boot.rb file is not copied into your project’s config directory.

To fix, simple copy  vendor/rails/railties/environments/boot.rb to config/boot.rb, overwriting your existing config file.

I also found that I was completely missing the initializers directory in my project’s config directory. So I got those files as well by creating a new rails project and copying the whole config/initializers directory into my config directory.

Share and Enjoy:
  • Print
  • Digg
  • Sphinn
  • del.icio.us
  • Facebook
  • Mixx
  • Google Bookmarks
  • Blogplay