On Tue, Dec 9, 2008 at 10:38 AM, Codeblogger <[EMAIL PROTECTED]> wrote:
> Hi Patrick, > > what do your tests/specs tell you? Do they pass? > > I forgot to mention that all of the tests pass before and after running the $ rake rails:update The main reason that I forgot to mention that was that, ummm... erhhh... Well, you see, at the time I wrote that, it wasn't strictly true. But now it is :-) And yes, Craig, that should have been "rake rails:update" not "rake rails:upgrade"... that was a silly typo on my part. Also, I had previously used gem to update my rails installation. So now, I would like to go add a page to the Wiki that says something like: If you want to update to a newer version of Rails, here is what you should do: 1) Run "rake test" and make sure that all of your tests pass. 2) Ensure that you have the newer version of Rails installed (e.g. via "gem update") 3) Check in your code using your favorite SCMS. 4) Edit config/environment.rb and set RAILS_GEM_VERSION to match the version of Rails to which you wish to update 5) run "rake update" to update the configuration files (such as boot.rb and environment.rb), scripts, and javascript files to reflect the newer version of Rails. 6) run "rake test" to make sure that all of your tests still pass 7) Fire up your browser and make sure things look "normal" (for suitable definition of "normal"). Does this sound about right to folks? Is there any reason (within reason) that this same procedure couldn't be used to downgrade an application (say, for example, if you wanted to use a plugin that only worked with 2.1.0, and you had been developing in 2.2.2)? I wouldn't expect it to work to switch from 2.2.2 to, say, 0.3.1, but it seems like it ought to work for anything in the 2.x.y series. --wpd --~--~---------~--~----~------------~-------~--~----~ 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@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---