Rails What's new in Rails 5?

rick · 2015年10月28日 · 2053 次阅读

关于即将到来的 Rails 5,这是目前最完整的新特性列表:What’s new in RAILS 5 ?

列举一些比较值得注意的变化:

  • Rails 5 will only work on Ruby 2.2.1 and above
  • Rails API merged into Rails
  • Render templates outside of controller. Render from anywhere – jobs, rake tasks
  • Turbolinks 3
  • Action Cable
  • Just use rails as the command router: having both rails and rake commands is confusing (Not yet merged)
  • belongs_to will now trigger a validation error by default if the association is not present
暂无回复。
需要 登录 后方可回复, 如果你还没有账号请 注册新账号