Rails 5.0!Rails 团队前几天刚刚庆祝 Rails 1.0发布十周年,现在只是测试版本, 但是 Rails 5.0.0.beta1 已经在生产环境运行 Basecamp 3。
Rails 5.0 Beta1 版本主要改进:全新处理 WebSockets 框架 Action Cable;新 API 模式 --api;Rails 命令都提供在 bin/rails 。
其他值得关注的新特性:
- New Attributes API by Sean Griffin.
- The test runner now reports failures inline, so you don't have to complete the suite to see what went wrong.
- ApplicationRecord has been born as a default parent class of all models created by the generators.
- ActiveRecord::Relation#in_batches makes it much easier to deal with record work in batches at a time to lessen memory overloads.
- Post.where('id = 1').or(Post.where('id = 2')) gives you exactly what you'd think!
- No more accidentally halting Active Record callbacks because the last statement is false. Now you throw(:abort) explicitly!
- 详细改进列表:
- Action Mailer CHANGELOG
- Action Pack CHANGELOG
- Action View CHANGELOG
- Active Model CHANGELOG
- Active Record CHANGELOG
- Active Support CHANGELOG
- Active Job CHANGELOG
- Railties CHANGELO
在Ubuntu 15.04中安装Ruby on Rails http://www.linuxidc.com/Linux/2015-07/119891.htm
Ubuntu下Apache服务器安装以及使用Passenger插件部署Rails应用 http://www.linuxidc.com/Linux/2012-12/75230.htm
CentOS系统搭建Ruby On Rails平台 http://www.linuxidc.com/Linux/2014-11/109590.htm
Ubuntu下搭建Ruby On Rails http://www.linuxidc.com/Linux/2012-06/61981.htm
《Web开发敏捷之道应用Rails进行敏捷Web开发(原书第4版)》.((美)Sam Ruby).[PDF]+源代码 http://www.linuxidc.com/Linux/2014-09/106975.htm
Rails 的详细介绍:请点这里
Rails 的下载地址:请点这里
本文永久更新链接地址:http://www.linuxidc.com/Linux/2015-12/126470.htm