The Decider said over 5 years ago permalink Comment? (0)
Tagged: rails

Upgrading Rails to 1.2.x

Trying to upgrade to 1.2.1 but being very suspicious.

Lock your rails app to a particular version.

In config/environment.rb:

RAILS_GEM_VERSION = '1.1.6' unless defined? RAILS_GEM_VERSION

Thanks to Steven Bristol for this tip.

Tried the tip on one of my machines. render :partial_success :| script/server seems to run but rake test still uses the latest rails and therefore breaks horribly. I guess I’m not alone:

Mr. van doorn has trouble too.

update

My project was created in rails v1.0. It turns out you need to rake rails:update:configs to update the config/boot.rb file. After I did that then test methods respected the RAILS_GEM_VERSION = '1.1.6' in environment.rb

Thanks to my co-conspirator, Stephen Ryan with the hint.

Comments

simple_captcha.jpg
Are you a Human? Type the code above.