Knowledge Base - FAQ

Question: Help! You upgraded Rails and my Rails 0.13.1 app is broken!

Per: http://wiki.rubyonrails.com/rails/pages/HowtoLockToSpecificRailsVersions

You can lock your app into the older versions of the Rails gems by changing your config/environment.rb to read:

# Set use_latest=true for latest gem install
# otherwise use 0.13.1 version of Rails
use_latest = false

if use_latest
  gem 'active_support'
  gem 'active_record'
  gem 'action_controller'
  gem 'action_mailer'
  gem 'action_web_service'
else
  gem 'activesupport', '= 1.1.1'
  gem 'actionwebservice', '= 0.8.1'
  gem 'activerecord', '= 1.11.1'
  gem 'actionpack', '= 1.9.1'
  gem 'actionmailer', '= 1.0.1'
  gem 'rails', '= 0.13.1'
end

require 'active_support'
require 'active_record'
require 'action_controller'
require 'action_mailer'
require 'action_web_service'



Last Modified: Apr 17, 2008


Kattare is Trustwave Certified and Safe Harbor Certified | Rated Safe For Kids by ICRA | All Rights Reserved Worldwide
Copyright © 1997 - 2012 Kättare Internet Services | Processed in 0.014 seconds by pyramid-06 in Corvallis, Oregon