How to upgrade Rails app from 2.3.5 to 3.2.x?

2020-07-18 04:49发布

I have Rails 2.3.5 app, I want to upgrade to 3.2.x. How do I upgrade to Rails 3.2.x?

Thanks

2条回答
做自己的国王
2楼-- · 2020-07-18 05:17
再贱就再见
3楼-- · 2020-07-18 05:28

I definitely recommend installing the Rails upgrade gem (rails upgrade gem). It's proven for me to be incredibly useful as a starting point for listing and verifying all the required upgrades to get to Rails 3.0.

I would also recommend this ebook http://www.railsupgradehandbook.com/

Once you're at Rails 3.0, you'll need to migrate to the asset pipeline, this is another good starting point: http://railscasts.com/episodes/282-upgrading-to-rails-3-1

This won't be a simple task and you'll need to ensure that your code doesn't break at each step, but these are tools I've found were great to get the ball rolling.

查看更多
登录 后发表回答