Rails What's new in Rails 5?

rick · October 28, 2015 · 2058 hits

关于即将到来的 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
No Reply at the moment.
You need to Sign in before reply, if you don't have an account, please Sign up first.