DO NOT READ THIS FILE ON GITHUB, GUIDES ARE PUBLISHED ON https://guides.rubyonrails.org.
Ruby on Rails
8.1 Release Notes
Highlights in Rails
8.1:
Upgrading to Rails
8.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
8.0 in case you
haven't and make sure your application still runs as expected before attempting
an update to Rails
8.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 support to skipping over leading brackets in parameter names in the parameter parser.
Before:
ActionDispatch::ParamBuilder.from_query_string("[foo]=bar") # => { "foo" => "bar" } ActionDispatch::ParamBuilder.from_query_string("[foo][bar]=baz") # => { "foo" => { "bar" => "baz" } }
After:
ActionDispatch::ParamBuilder.from_query_string("[foo]=bar") # => { "[foo]" => "bar" } ActionDispatch::ParamBuilder.from_query_string("[foo][bar]=baz") # => { "[foo]" => { "bar" => "baz" } }
Remove deprecated support for using semicolons as a query string separator.
Before:
ActionDispatch::QueryParser.each_pair("foo=bar;baz=quux").to_a # => [["foo", "bar"], ["baz", "quux"]]
After:
ActionDispatch::QueryParser.each_pair("foo=bar;baz=quux").to_a # => [["foo", "bar;baz=quux"]]
Remove deprecated support to a route to multiple paths.
Deprecations
- Deprecate
Rails.application.config.action_dispatch.ignore_leading_brackets
.
Notable changes
Action View
Please refer to the Changelog for detailed changes.
Removals
Deprecations
Notable changes
Action Mailer
Please refer to the Changelog for detailed changes.
Removals
Deprecations
Notable changes
Active Record
Please refer to the Changelog for detailed changes.
Removals
Remove deprecated
:retries
option for the SQLite3 adapter.Remove deprecated
:unsigned_float
and:unsigned_decimal
column methods for MySQL.
Deprecations
Notable changes
- The table columns inside
schema.rb
are now sorted alphabetically.
Active Storage
Please refer to the Changelog for detailed changes.
Removals
- Remove deprecated
:azure
storage service.
Deprecations
Notable changes
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
Remove support to set ActiveJob::Base.enqueue_after_transaction_commit to
:never
,:always
and:default
.Remove deprecated
Rails.application.config.active_job.enqueue_after_transaction_commit
.Remove deprecated internal
SuckerPunch
adapter in favor of the adapter included with thesucker_punch
gem.
Deprecations
Notable changes
Action Text
Please refer to the Changelog for detailed changes.
Removals
Deprecations
Notable changes
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.