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 --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
On 19-Feb-07, at 10:54 PM, Eric wrote:> > 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 >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 --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
I just added a HowtoUpgrade howto to http://wiki.rubyonrails.com/rails/pages/Howtos. If anyone knows a better approach please update the wiki. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---