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
Do I need to do a new application and I only copy and paste the necesary
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
Commit that version to your version control system
Run your tests