如何将 Rails 应用程序从 2.3.5 升级到 3.2.x? [英] How to upgrade Rails app from 2.3.5 to 3.2.x?

查看:46
本文介绍了如何将 Rails 应用程序从 2.3.5 升级到 3.2.x?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有 Rails 2.3.5 应用程序,我想升级到 3.2.x.如何升级到 Rails 3.2.x?

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

谢谢

推荐答案

我绝对推荐安装 Rails 升级 gem (rails 升级宝石).事实证明,它作为列出和验证所有升级到 Rails 3.0 所需的起点非常有用.

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.

我还推荐这本电子书 http://www.railsupgradehandbook.com/

一旦您使用 Rails 3.0,您将需要迁移到资产管道,这是另一个很好的起点:http://railscasts.com/episodes/282-upgrading-to-rails-3-1

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.

这篇关于如何将 Rails 应用程序从 2.3.5 升级到 3.2.x?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆