导轨 2 至导轨 3
如何将 Rails 2 插件升级到 Rails 3?
how to upgrade a rails 2 plugin to rails 3?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
如何将 Rails 2 插件升级到 Rails 3?
how to upgrade a rails 2 plugin to rails 3?
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
接受
或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
发布评论
评论(7)
本手册将准确告诉您该怎么做:
http://www.railsupgradehandbook.com/
升级旧版 Rails 2 -3 是一项乏味的任务...会引起许多错误,特别是如果应用程序又大又旧。我还建议您观看 Railscast 第 225,226 和 226 集。
祝你好运:)
This handbook will tell you exactly what to do:
http://www.railsupgradehandbook.com/
Upgrading a legacy rails 2 -3 is a tedious task ... many errors will arouse especially if the application is big and old. I would also suggest you watch railscast episodes 225,226 and 226.
Good luck :)
我向您推荐本教程:
I recommend you this tutorial:
有一个插件可用于升级 Rails 版本。
试试这个:
https://github.com/rails/rails_upgrade
There is a plugin available for upgrading rails version.
Try this:
https://github.com/rails/rails_upgrade
通常,将 Rails 2 应用程序升级到 Rails 2 并不难。以下是示例指南:
http://www.railsdispatch.com/posts/upgrading-a-rails-2-app-to-rails-3
适用于应用程序的指南也应适用于插件还有
Normally it's not that hard to upgrade Rails 2 app to Rails 2. Here is a sample guide:
http://www.railsdispatch.com/posts/upgrading-a-rails-2-app-to-rails-3
The guidelines that applies to apps should apply to plugins as well
如果您想将 2.x 应用程序升级到 3,
Railscast 有一集 升级到 Rails 3 第 1 部分,其中解释了 Rails_upgrade 插件,有助于确定需要升级的内容。
将插件升级到 Rails 3.0
http://boldr.net/upgrade-plugins-gems-rails-3
If you want to upgrade a 2.x app to 3,
there is an episode in Railscast Upgrading to Rails 3 Part 1 which explains about rails_upgrade plugin that help to determine what needs upgrading.
To upgrade plugins to Rails 3.0
http://boldr.net/upgrade-plugins-gems-rails-3
我认为你无法将 Rails 2 插件升级到 Rails 3 插件。您始终可以更改适合 Rails 3 编码的代码结构,但这并不意味着升级。如果您可以找到适合该插件的 Rails 3 版本,您可能需要检查存储库
i think you can't upgrade the rails 2 plugin to rails 3 plugin. You can always change the structure of the code suitable to rails 3 coding but that doesn't mean upgrade. You might need to check out the repository if you could find the version suitable to rails 3 for that plugin
您可以找到一个窥视代码: https://peepcode.com/products/rails -3-upgrade-handbook-pdf
或者railscasts也非常好
You can find a peepcode for that : https://peepcode.com/products/rails-3-upgrade-handbook-pdf
Or the railscasts is very nice too