Rails 升级到 Rails4.0 后发现没什么新特性可以用上=。=

zfben · 2013年02月28日 · 最后由 iBachue 回复于 2013年07月02日 · 3817 次阅读

简单的个人网站,数据库使用 mongoid,所以 AR 的新特性被无视了;Strong Parameters 对于小网站而言也没有用武之地;网站访问量低,没写缓存,所以缓存的新特性也没有用上。

目前看下来似乎只有 Turbolinks 可以尝试下?

各位有什么打算升级到 Rails4.0 后使用的新特性吗?

很多 Gem 还没升级,暂时升不了

各种 Gem 没更新

等 Gem 升级中

Live streaming?

#4 楼 @iBachue Live streaming 包含在 rails4 里了么?

HTTP Streaming is another change that is new in Rails 3.1. This lets the browser download your stylesheets and JavaScript files while the server is still generating the response. This requires Ruby 1.9.2, is opt-in and requires support from the web server as well, but the popular combo of nginx and unicorn is ready to take advantage of it.

#5 楼 @iceskysl 至少上次我用 beta 的时候确实包含了 我体验过的

需要 登录 后方可回复, 如果你还没有账号请 注册新账号