Upgrading Rails Projects

0 views
Skip to first unread message

Eric

unread,
Feb 19, 2007, 10:54:43 PM2/19/07
to Ruby on Rails: Talk
I recently upgraded a rails 1.6 project to 1.2.2. I looked around
rubyonrails.org and the apis and didn't find any reference on how to
upgrade. I searched the web and found that "rake rails:update" should
be called so I tried that with no luck. I then started poking around
the project files and found the RAILS_GEM_VERSION property in
environment.rb and changed it to 1.2.2 and ran rake again which
appears to have worked.

Are these the proper steps to take when upgrading an existing Rails
project? Does anyone know where this is actually documented? I'm new
to rails and I'm assuming I overlooked some release notes or upgrade
guide that you typically find bundled with a release.

Eric

Jodi Showers

unread,
Feb 19, 2007, 11:00:36 PM2/19/07
to rubyonra...@googlegroups.com

documentation on this matters is weak - usually deprecation warnings
help a bunch - plus tests are your friend

upgrade (as per your notes above), then run your tests

cheers,
Jodi


Eric

unread,
Feb 20, 2007, 8:16:49 AM2/20/07
to Ruby on Rails: Talk
I just added a HowtoUpgrade howto to http://wiki.rubyonrails.com/rails/pages/Howtos.
If anyone knows a better approach please update the wiki.

Reply all
Reply to author
Forward
0 new messages