6.3 KiB
DO NOT READ THIS FILE ON GITHUB, GUIDES ARE PUBLISHED ON https://guides.rubyonrails.org.
Ruby on Rails 6.1 Release Notes
Highlights in Rails 6.1:
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 in the main Rails repository on GitHub.
Upgrading to Rails 6.1
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 6.0 in case you haven't and make sure your application still runs as expected before attempting an update to Rails 6.1. A list of things to watch out for when upgrading is available in the Upgrading Ruby on Rails guide.
Major Features
Railties
Please refer to the Changelog for detailed changes.
Removals
Deprecations
Notable changes
Action Cable
Please refer to the Changelog for detailed changes.
Removals
Deprecations
Notable changes
Action Pack
Please refer to the Changelog for detailed changes.
Removals
-
Remove deprecated
format
argumentActionView::Base#initialize
. -
Remove deprecated
ActionView::Template#refresh
. -
Remove deprecated
ActionView::Template#original_encoding
. -
Remove deprecated
ActionView::Template#variants
. -
Remove deprecated
ActionView::Template#formats
. -
Remove deprecated
ActionView::Template#virtual_path=
. -
Remove deprecated
ActionView::Template#updated_at
. -
Remove deprecated
updated_at
argument required onActionView::Template#initialize
. -
Make
locals
argument required onActionView::Template#initialize
. -
Remove deprecated
ActionView::Template.finalize_compiled_template_methods
. -
Remove deprecated
config.action_view.finalize_compiled_template_methods
-
Remove deprecated support to calling
ActionView::ViewPaths#with_fallback
with a block. -
Remove deprecated support to passing absolute paths to
render template:
. -
Remove deprecated support to passing relative paths to
render file:
. -
Remove support to template handlers that don't accept two arguments.
-
Remove deprecated
ActionDispatch::Http::ParameterFilter
. -
Remove deprecated
force_ssl
at the controller level.
Deprecations
Notable changes
Action View
Please refer to the Changelog for detailed changes.
Removals
-
Remove deprecated pattern argument in
ActionView::Template::PathResolver
. -
Remove deprecated support to call private methods from object in some view helpers.
Deprecations
Notable changes
Action Mailer
Please refer to the Changelog for detailed changes.
Removals
- Remove deprecated
ActionMailer::Base.receive
in favor of Action Mailbox.
Deprecations
Notable changes
Active Record
Please refer to the Changelog for detailed changes.
Removals
Deprecations
Notable changes
Active Storage
Please refer to the Changelog for detailed changes.
Removals
Deprecations
- Deprecate
Blob.create_after_upload
in favor ofBlob.create_and_upload
. (Pull Request)
Notable changes
- Add
Blob.create_and_upload
to create a new blob and upload the givenio
to the service. (Pull Request)
Active Model
Please refer to the Changelog for detailed changes.
Removals
Deprecations
Notable changes
Active Support
Please refer to the Changelog for detailed changes.
Removals
Deprecations
Notable changes
Active Job
Please refer to the Changelog for detailed changes.
Removals
Deprecations
Notable changes
Action Text
Please refer to the Changelog for detailed changes.
Removals
Deprecations
Notable changes
-
Add method to confirm rich text content existence by adding
?
after name of the rich text attribute. (Pull Request) -
Add
fill_in_rich_text_area
system test case helper to find a trix editor and fill it with given HTML content. (Pull Request)
Action Mailbox
Please refer to the Changelog for detailed changes.
Removals
Deprecations
Notable changes
Ruby on Rails Guides
Please refer to the Changelog for detailed changes.
Notable changes
Credits
See the full list of contributors to Rails for the many people who spent many hours making Rails, the stable and robust framework it is. Kudos to all of them.