我应该在我的应用程序中使用 Rails 3

发布于 2024-08-21 11:29:46 字数 286 浏览 6 评论 0原文

我已经使用Rails有一段时间了,最​​近使用的是2.3.4版本。

Rails 3 Beta 最近刚刚发布,它似乎有显着的性能改进,尤其是与 Merb 的合并。

我计划构建一个应用程序,需要 4-6 个月的时间。我应该从 beta 版开始使用 Rails 3 吗?知道在完全发布之前它会出现错误吗? 性能绝对是我的应用程序的重要要求。

如果您能提供对以下问题的见解,您可以帮助我: 1- 您认为 Rails 3 会在 4-6 个月内发布吗? 2- 如果我选择使用 Rails 2.3.5,迁移代码会容易吗?

I have been a user of Rails for a while and used version 2.3.4 recently.

Rails 3 Beta just came out recently and it seems have significant performance improvement especially with the merge with Merb.

I'm planning on building an application that will take 4-6 months. Should I use Rails 3 for it starting with beta? Knowing that it will be buggy until full release?
Performance is definitely an important requirement for my application.

You can help me if you can provide insight in the following questions:
1- Do you think Rails 3 will be out in 4-6 months?
2- Will it be easy to migrate code should I choose to go for Rails 2.3.5?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(3

∞梦里开花 2024-08-28 11:29:46

有一些方面需要考虑:

您的应用程序是否依赖于第 3 方插件/gems?如果是这样,您应该检查它们是否已经与 Rails 3 兼容。您可能会发现尚不兼容的库,但这些库很可能迟早会“得到修复”。

此外,这实际上取决于您所讨论的应用程序类型。就我个人而言,我正在将我的一个基于 2.3.5 的站点移植到 Rails 3,但仅用于准备和学习目的。由于 Rails 3 目前还只是公开测试版,它绝对不被认为是生产就绪。您可以下载它、使用它并玩玩它,但现在就这样了。

如果您决定升级现有项目之一(我鼓励您这样做),请查看 Geoffrey Grosenbach 的 截屏视频 将指导您完成升级过程。

还有一个官方插件,其中包含一个方便的脚本,您可以使用它来找出应用程序的哪些部分需要升级。

There are certain aspects to consider:

Does your application depend on 3rd party plugins/gems? If so than you should check if those are already Rails 3 compatible. You're probably gonna find libraries which are incompatible as yet but there is a big chance that these are gonna "get fixed" sooner or later.

Also, it really depends on what kind of application you are talking about. Personally I'm porting one of my 2.3.5 based sites to Rails 3 but only for preparing and learning purposes. Since Rails 3 is only public beta as yet, IT IS DEFINITELY NOT CONSIDERED TO BE PRODUCTION READY. You can download it, use it and play with it but that's pretty much it for now.

If you decide to upgrade one of your existing projects (which I'd encourage you to do) than have a look at Geoffrey Grosenbach's screencast which will guide you through the upgrading process.

There's also an official plugin which contains a handy script that you can use to find out which parts of your application need to be upgraded.

活泼老夫 2024-08-28 11:29:46

据我所知,目前还没有确定具体的发布日期。另一点需要考虑的是您的项目依赖多少个 Rails 插件,因为我认为大多数插件也需要升级......

afaik there is no definite release date set yet. another point to consider is on how many rails plugins does your project depend on as i think most of them will need to be upgraded too ...

神爱温柔 2024-08-28 11:29:46

我认为您应该为 2.3.5 版本执行此操作,但始终考虑 Rails 3。阅读发行说明。例如,使用这个插件默认转义html。

尝试使用适用于 Rails 3 的插件。请在此处查看列表。

使用不显眼的 JavaScript。

I think you should do it for version 2.3.5 but always think about Rails 3. Read release notes. For example use this plugin to escape html by default.

Try to use plugins that are ready for Rails 3. Check list here.

Use unobtrusive javascript.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文