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

后端 未结 7 621
鱼传尺愫
鱼传尺愫 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:15

    I found that those docs were missing a few details and moving from 2.1 => 2.2 took quite some time. Here are my notes:

    Biggest time sink: assert_redirected_to has changed significantly, no longer supporting hashes (at all?)

    • Lighthouse entry
    • More on problems with assert_redirected_to under Rails 2.2.2

    Also, need to set environment/test.rb to disable forgery protection

    If anyone's got news on these points for 2.3 that'd be super awesome.

提交回复
热议问题