How should I upgrade a Rails app to use the latest version of Rails

后端 未结 7 633
鱼传尺愫
鱼传尺愫 2021-02-02 04:35

I\'m working on a Rails app that currently uses Rails 1.2, so I\'m now quite a long way behind the latest stable release (Rails 2.3).

How should I go about the process o

7条回答
  •  佛祖请我去吃肉
    2021-02-02 05:11

    I went through this a few months back, did a lot of research and put together a rake task (based on someone else's script plus additional resources) that might help you in flagging things to change in your code. This was for upgrading to Rails 2.2 so it doesn't take into account Rails 2.3 changes:

    http://gist.github.com/99535

    Oh, be sure to check that the plugins and gems you use are Rails 2.x compatible and use the latest versions.

    And I definitely agree with upgrading directly to Rails 2.3 in one go. And don't keep putting it off; the longer you go without upgrading, the more difficult it will be as more will have changed. And it's harder to maintaing Rails 1.x code as there are less resources that support it.

提交回复
热议问题