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

zfben · February 28, 2013 · Last by iBachue replied at July 02, 2013 · 3817 hits

简单的个人网站,数据库使用 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 的时候确实包含了 我体验过的

You need to Sign in before reply, if you don't have an account, please Sign up first.