**DO NOT READ THIS FILE ON GITHUB, GUIDES ARE PUBLISHED ON http://guides.rubyonrails.org.** Ruby on Rails 5.2 Release Notes =============================== Highlights in Rails 5.2: * Active Storage * Redis Cache Store * HTTP/2 Early hints support * Credentials * Default Content Security Policy These release notes cover only the major changes. To learn about various bug fixes and changes, please refer to the change logs or check out the [list of commits](https://github.com/rails/rails/commits/5-2-stable) in the main Rails repository on GitHub. -------------------------------------------------------------------------------- Upgrading to Rails 5.2 ---------------------- If you're upgrading an existing application, it's a great idea to have good test coverage before going in. You should also first upgrade to Rails 5.1 in case you haven't and make sure your application still runs as expected before attempting an update to Rails 5.2. Major Features -------------- ### Active Storage [README](https://github.com/rails/rails/blob/d3893ec38ec61282c2598b01a298124356d6b35a/activestorage/README.md) ### Redis Cache Store [Pull Request](https://github.com/rails/rails/pull/31134) ### HTTP/2 Early hints support [Pull Request](https://github.com/rails/rails/pull/30744) ### Credentials [Pull Request](https://github.com/rails/rails/pull/30067) ### Default Content Security Policy [Pull Request](https://github.com/rails/rails/pull/31162) Incompatibilities ----------------- ToDo Railties -------- Please refer to the [Changelog][railties] for detailed changes. ### Deprecations * Deprecate `capify!` method in generators and templates. ([Pull Request](https://github.com/rails/rails/pull/29493)) * Deprecated passing the environment's name as a regular argument to the `rails dbconsole` and `rails console` commands. ([Pull Request](https://github.com/rails/rails/pull/29358)) * Deprecated using subclass of `Rails::Application` to start the Rails server. ([Pull Request](https://github.com/rails/rails/pull/30127)) * Deprecated `after_bundle` callback in Rails plugin templates. ([Pull Request](https://github.com/rails/rails/pull/29446)) ### Notable changes ToDo Action Cable ----------- Please refer to the [Changelog][action-cable] for detailed changes. ### Removals * Removed deprecated evented redis adapter. ([Commit](https://github.com/rails/rails/commit/48766e32d31)) ### Notable changes * Added support for `host`, `port`, `db` and `password` options in cable.yml ([Pull Request](https://github.com/rails/rails/pull/29528)) * Added support for compatibility with redis-rb gem for 4.0 version. ([Pull Request](https://github.com/rails/rails/pull/30748)) Action Pack ----------- Please refer to the [Changelog][action-pack] for detailed changes. ### Removals * Removed deprecated `ActionController::ParamsParser::ParseError`. ([Commit](https://github.com/rails/rails/commit/e16c765ac6d)) ### Deprecations * Deprecated `#success?`, `#missing?` and `#error?` aliases of `ActionDispatch::TestResponse`. ([Pull Request](https://github.com/rails/rails/pull/30104)) ### Notable changes ToDo Action View ------------- Please refer to the [Changelog][action-view] for detailed changes. ### Removals * Removed deprecated Erubis ERB handler. ([Commit](https://github.com/rails/rails/commit/7de7f12fd14)) ### Deprecations * Deprecated `image_alt` helper which used to add default alt text to the images generated by `image_tag`. ([Pull Request](https://github.com/rails/rails/pull/30213)) ### Notable changes ToDo Action Mailer ------------- Please refer to the [Changelog][action-mailer] for detailed changes. ### Notable changes ToDo Active Record ------------- Please refer to the [Changelog][active-record] for detailed changes. ToDo ### Deprecations ToDo ### Notable changes ToDo Active Model ------------ Please refer to the [Changelog][active-model] for detailed changes. ### Removals ToDo ### Notable changes ToDo Active Support -------------- Please refer to the [Changelog][active-support] for detailed changes. ### Removals ToDo ### Deprecations ToDo ### Notable changes ToDo Active Job ----------- Please refer to the [Changelog][active-job] for detailed changes. ### Removals ToDo ### Notable changes ToDo Credits ------- See the [full list of contributors to Rails](http://contributors.rubyonrails.org/) for the many people who spent many hours making Rails, the stable and robust framework it is. Kudos to all of them. [railties]: https://github.com/rails/rails/blob/5-2-stable/railties/CHANGELOG.md [action-pack]: https://github.com/rails/rails/blob/5-2-stable/actionpack/CHANGELOG.md [action-view]: https://github.com/rails/rails/blob/5-2-stable/actionview/CHANGELOG.md [action-mailer]: https://github.com/rails/rails/blob/5-2-stable/actionmailer/CHANGELOG.md [action-cable]: https://github.com/rails/rails/blob/5-2-stable/actioncable/CHANGELOG.md [active-record]: https://github.com/rails/rails/blob/5-2-stable/activerecord/CHANGELOG.md [active-model]: https://github.com/rails/rails/blob/5-2-stable/activemodel/CHANGELOG.md [active-support]: https://github.com/rails/rails/blob/5-2-stable/activesupport/CHANGELOG.md [active-job]: https://github.com/rails/rails/blob/5-2-stable/activejob/CHANGELOG.md