Rails Versions

I’ve been running on Edge Rails for a while now, but I decided to freeze to version 1.1.0 so that I could ensure some stability in my production application.

I’ve totally hosed my app. I’m getting this error:

c:/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:21:in `require__':
no such file to load -- ./script/../config/../vendor/rails/railties/lib/initializer
(LoadError)
from c:/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:21:in `require'
from ./script/../config/boot.rb:13
from c:/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:21:in `require'
from script/server:2

Wow. So, here’s how I got it working again:

  • I’m using InstantRails. There are directions on how to upgrade on the InstantRails wiki.
  • Downloaded InstantRails 1.1, which include Ruby 1.8.4 and lots of other stuff.
  • Renamed my C:\InstantRails directory. I had to close all my project files, terminal windows, SVN sessions, db connections, and rebooted so I could rename the directory, so I went ahead and upgraded my TortiseSVN while I was at it.
  • Upgraded my RadRails to 0.6.1
  • I moved my InstantRails /mysql/data/* over to the new InstantRails directory. I decided not to move my app because of all the fumbling I’d done trying to get it to work before.
  • Starting up InstantRails gave me an Apache httpd.conf error because I had a virtual host set up, but I hadn’t recreated the folder that’s the DocumentRoot. No harm, no foul.
  • Since my RadRails workspace was in the old app’s directory, I had to recreate my SVN connection. Since my radrails .project file was in the repository, that’s got everything I need.
  • I reset the Ruby interpreter location (Window > Preferences > Ruby > Installed Interpreters) and recreated my webrick server.
  • Since I set a svn:external to the 1.1.0 tag of Rails, my subversion checkout also downloaded all of the Rails code into vendor/rails
  • Started webrick and all was beautiful and happy.
  • Got rid of two old versions of InstantRails and another copy of Ruby and Apache that I’d installed before I found InstantRails.

So, I’ll probably stick to Rails 1.1.0 until something comes across the commit feed that I must have. I also thing that I’ll be setting svn:external properties more in the future, because I can set it to a specific revision. It keeps my production and development environments the same.

Leave a Comment

Comments are moderated.