Rails 8.0.5.2 (November 03, 2026)¶ ↑
-
Skip attribute names in tag helpers that are blank once converted to a string.
A
Symbolsuch as:" "is not blank, becauseSymbol#blank?isSymbol#empty?, so it reached the escaping step and produced an attribute with no name. The asset helpers symbolize their keys, so an ordinaryStringkey reached the same place.[GHSA-68p9-83h6-5wpj]
Mike Dalessio
-
Fix
strip_tagsto encode"and'in its output.strip_tagsreturns anhtml_safestring, but was not encoding quotation marks. The method now encodes all five HTML-significant characters (&,<,>,",'), consistent with the existinghtml_safeconvention.Output used outside HTML, such as in a text template or JSON, now contains
"and'where it contained"and'.CGI.unescapeHTMLdecodes them.[GHSA-rq8q-p985-fjq7]
Mike Dalessio
-
Escape the matched phrase before substituting it into
highlight's:highlighter.A match was copied into each
\1of the highlighter as it appeared in the sanitized text, which keeps"and'as they are, so a match containing a quote ended a quoted attribute value such as the documented'<a href="search?q=\1">\1</a>'and added attributes of its own. Each substituted group now goes throughERB::Util.html_escape_once, so quotes in a match render as"and'. Only the numbered placeholders\0to\9are expanded, and a match never replaces the>that closes a tag.[GHSA-v6rj-xm57-3p59]
Jeremy Daer
-
Require rails-html-sanitizer 1.7.2 or later.
With the HTML5 sanitizer, Nokogiri before 1.19.5 left
<and>unescaped in attribute values.highlightandsimple_format, which edit the sanitized HTML as a string, could then turn markup inside an attribute value into live elements. rails-html-sanitizer 1.7.2 requires Loofah 2.25.3, which requires Nokogiri 1.19.5.[GHSA-2p2f-4rq4-gjwc]
Mike Dalessio
Rails 8.0.5.1 (July 29, 2026)¶ ↑
-
No changes.
Rails 8.0.5 (March 24, 2026)¶ ↑
-
Fix encoding errors for string locals containing non-ASCII characters.
Kataoka Katsuki
-
Fix collection caching to only forward
expires_inargument if explicitly set.Pieter Visser
-
Fix
file_fieldto join mime types with a comma when provided asArrayfile_field(:article, :image, accept: ['image/png', 'image/gif', 'image/jpeg'])
Now behaves likes:
file_field(:article, :image, accept: 'image/png,image/gif,image/jpeg')
Bogdan Gusiev
-
Fix strict locals parsing to handle multiline definitions.
Said Kaldybaev
Rails 8.0.4.1 (March 23, 2026)¶ ↑
-
Skip blank attribute names in tag helpers to avoid generating invalid HTML.
[CVE-2026-33168]
Mike Dalessio
Rails 8.0.4 (October 28, 2025)¶ ↑
-
Restore
add_default_name_and_idmethod.Hartley McGuire
Rails 8.0.3 (September 22, 2025)¶ ↑
-
Fix label with
foroption not getting prefixed by formnamespacevalueAbeid Ahmed, Hartley McGuire
-
Fix
javascript_include_tagtypeoption to accept either strings and symbols.javascript_include_tag "application", type: :module javascript_include_tag "application", type: "module"
Previously, only the string value was recognized.
Jean Boussier
-
Fix
excerpthelper with non-whitespace separator.Jonathan Hefner
Rails 8.0.2.1 (August 13, 2025)¶ ↑
-
No changes.
Rails 8.0.2 (March 12, 2025)¶ ↑
-
Respect
html_options[:form]whencollection_checkboxesgenerates the hidden<input>.Riccardo Odone
-
Layouts have access to local variables passed to
render.This fixes #31680 which was a regression in
Rails5.1.Mike Dalessio
-
Argument errors related to strict locals in templates now raise an
ActionView::StrictLocalsError, and all other argument errors are reraised as-is.Previously, any
ArgumentErrorraised during template rendering was swallowed during strict local error handling, so that anArgumentErrorunrelated to strict locals (e.g., a helper method invoked with incorrect arguments) would be replaced by a similarArgumentErrorwith an unrelated backtrace, making it difficult to debug templates.Now, any
ArgumentErrorunrelated to strict locals is reraised, preserving the original backtrace for developers.Also note that
ActionView::StrictLocalsErroris a subclass ofArgumentError, so any existing code that rescuesArgumentErrorwill continue to work.Fixes #52227.
Mike Dalessio
-
Fix stack overflow error in dependency tracker when dealing with circular dependencies
Jean Boussier
Rails 8.0.1 (December 13, 2024)¶ ↑
-
Fix a crash in
ERBtemplate error highlighting when the error occurs on a line in the compiled template that is past the end of the source template.Martin Emde
-
Improve reliability of
ERBtemplate error highlighting. Fix infinite loops and crashes in highlighting and improve tolerance for alternateERBhandlers.Martin Emde
Rails 8.0.0.1 (December 10, 2024)¶ ↑
-
No changes.
Rails 8.0.0 (November 07, 2024)¶ ↑
-
No changes.
Rails 8.0.0.rc2 (October 30, 2024)¶ ↑
-
No changes.
Rails 8.0.0.rc1 (October 19, 2024)¶ ↑
-
Remove deprecated support to passing a content to void tag elements on the
tagbuilder.Rafael Mendonça França
-
Remove deprecated support to passing
nilto themodel:argument ofform_with.Rafael Mendonça França
Rails 8.0.0.beta1 (September 26, 2024)¶ ↑
-
Enable DependencyTracker to evaluate renders with trailing interpolation.
<%= render "maintenance_tasks/runs/info/#{run.status}" %>Previously, the DependencyTracker would ignore this render, but now it will mark all partials in the "maintenance_tasks/runs/info" folder as dependencies.
Hartley McGuire
-
Rename
text_areamethods intotextareaOld names are still available as aliases.
Sean Doyle
-
Rename
check_box*methods intocheckbox*.Old names are still available as aliases.
Jean Boussier
Please check 7-2-stable for previous changes.