Changing application version

I have an application on Rails 2.0.2 and I want to update it to Rails
2.3.4.

Do I need to do a new application and I only copy and paste the necesary
files?

Or, Do I can to do another thing?

I tried with: rake rails:update, but nothing happened.

Does anyone know how to do this?

On Thu, Mar 25, 2010 at 10:47 AM, Jorge alejandro Mendoza torres <
[email protected]> wrote:

Does anyone know how to do this?

Did you edit your environment.rb to use 2.3.4? Next, if you installed
Rails
into vendor, then you’ll need
to remove it to use the system installed gem.

Good luck,

-Conrad

On 25 March 2010 17:47, Jorge alejandro Mendoza torres
[email protected] wrote:

I have an application on Rails 2.0.2 and I want to update it to Rails
2.3.4.

Do I need to do a new application and I only copy and paste the necesary
files?

Or, Do I can to do another thing?

I tried with: rake rails:update, but nothing happened.

First make sure you are using a version control system so you can make
changes and back out if necessary. (I prefer git, some like svn etc.)

Next make sure your test suite is comprehensive so you can be sure you
have not messed anything up.

Install the rails version 2.3.4

Edit config/environment.rb so you have a line like
RAILS_GEM_VERSION = ‘2.3.4’ unless defined? RAILS_GEM_VERSION
It should currently reference the old version.

Then do rake rails:update, it should update boot.rb and probably some
other files

Commit that version to your version control system

Run your tests

Colin