Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

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

gem update rails

I suppose that I need to change this line

RAILS_GEM_VERSION = '2.1.0' unless defined? RAILS_GEM_VERSION

in environment.rb

What other actions should I take to ensure that my application is using the latest version? Are there some other files that need an update?

like image 610
hectorsq Avatar asked Oct 08 '08 19:10

hectorsq


1 Answers

You'll also need to go into your application directory and run the following command:

rake rails:update

Then run your tests and make sure everything works.

like image 136
Yardboy Avatar answered Oct 06 '22 20:10

Yardboy