What do I need to do to upgrade my application to the latest version of Rails?

I am currently using Rails 2.1.0 and want to upgrade to Rails 2.1.1. By issuing the following command

gem update rails 

I suppose I need to change this line

 RAILS_GEM_VERSION = '2.1.0' unless defined? RAILS_GEM_VERSION 

in environment.rb

What other steps should I take to make sure my application is using the latest version? Are there any other files that need updating?

+6
ruby-on-rails upgrade
source share
2 answers

You will also need to enter the directory of your application and run the following command:

Reiki: update

Then run your tests and make sure everything works.

+3
source share

As far as I know, this right determines which version of the rails will be used by your application as a whole. I know, for the project in which I am now, I had to override this in 2.1.1 to work with my virtual machine, because I installed the latest version and did not specify 2.1.0 as required by the project.

The most important things that you should pay attention to are plugins and extensions that can override this parameter, as well as incompatibility, which is likely to arise due to version changes.

There are also some known issues with 2.1.1, unless you need a function, you can wait.

0
source share

All Articles