简体   繁体   English

如何将 Rails 3.0.3 更新到 3.1?

[英]How to update rails 3.0.3 to 3.1?

How do I update to Rails 3.1?如何更新到 Rails 3.1?

I am using windows xp with ruby console.我正在使用 windows xp 和 ruby 控制台。

And is there a smart way to update a rails app from 3.0.3 to 3.1 or do I need to rewrite it all?有没有一种聪明的方法可以将 Rails 应用程序从 3.0.3 更新到 3.1,还是我需要全部重写?

This question has a lot of useful information which might help you out: Upgrading from Rails 3 to Rails 3.1这个问题有很多有用的信息可以帮助你: Upgrading from Rails 3 to Rails 3.1

It doesn't answer specifically for Windows, but there's a lot of advice and insight that you'll find useful for the upgrade.它没有专门针对 Windows 回答,但有很多建议和见解对升级很有用。

The only advice I can offer on top of reading the answers in the above question is to have a bit of patience and not expect it to work straight away.除了阅读上述问题的答案之外,我能提供的唯一建议是要有一点耐心,不要指望它会立即起作用。 There's a lot of changes in the way 3.1 works so expect to spend some time fixing it up. 3.1 的工作方式有很多变化,所以希望花一些时间来修复它。

Good luck!祝你好运!

I created one vanilla 3.0 site, added it to Git, then created a vanilla 3.1 site and copied it over the 3.0 site, deleting existing files first.我创建了一个 vanilla 3.0 站点,将其添加到 Git,然后创建一个 vanilla 3.1 站点并将其复制到 3.0 站点上,首先删除现有文件。 A diff then showed me exactly what changed.然后一个差异向我展示了到底发生了什么变化。

I would strongly recommend this and the following two railscasts in the series我强烈推荐这个和系列中的以下两个 railscast

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM