Rails 7.2.3 (October 28, 2025)¶ ↑
-
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 recoginized.
Jean Boussier
-
Fix
excerpthelper with non-whitespace separator.Jonathan Hefner
-
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
-
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 7.2.2.2 (August 13, 2025)¶ ↑
-
No changes.
Rails 7.2.2.1 (December 10, 2024)¶ ↑
-
No changes.
Rails 7.2.2 (October 30, 2024)¶ ↑
-
No changes.
Rails 7.2.1.2 (October 23, 2024)¶ ↑
-
No changes.
Rails 7.2.1.1 (October 15, 2024)¶ ↑
-
No changes.
Rails 7.2.1 (August 22, 2024)¶ ↑
-
No changes.
Rails 7.2.0 (August 09, 2024)¶ ↑
-
Fix templates with strict locals to also include
local_assigns.Previously templates defining strict locals wouldn't receive the
local_assignshash.Jean Boussier
-
Add queries count to template rendering instrumentation.
# Before Completed 200 OK in 3804ms (Views: 41.0ms | ActiveRecord: 33.5ms | Allocations: 112788) # After Completed 200 OK in 3804ms (Views: 41.0ms | ActiveRecord: 33.5ms (2 queries, 1 cached) | Allocations: 112788)
fatkodima
-
Raise
ArgumentErrorif:renderableobject does not respond to render_in.Sean Doyle
-
Add the
nonce: trueoption forstylesheet_link_taghelper to support automatic nonce generation for Content Security Policy.Works the same way as
javascript_include_tag nonce: truedoes.Akhil G Krishnan, AJ Esler
-
Parse
ActionView::TestCase#renderedHTML content asNokogiri::XML::DocumentFragmentinstead ofNokogiri::XML::Document.Sean Doyle
-
Rename
ActionView::TestCase::Behavior::ContenttoActionView::TestCase::Behavior::RenderedViewContent.Make
RenderedViewContentinherit fromString. Make private API with:nodoc:Sean Doyle
-
Deprecate passing
nilas value for themodel:argument to theform_withmethod.Collin Jilbert
-
Alias
field_set_taghelper tofieldset_tagto match<fieldset>element.Sean Doyle
-
Deprecate passing content to void elements when using
tag.brtype tag builders.Hartley McGuire
-
Fix the
number_to_human_sizeview helper to correctly work with negative numbers.Earlopain
-
Automatically discard the implicit locals injected by collection rendering for template that can't accept them.
When rendering a collection, two implicit variables are injected, which breaks templates with strict locals.
Now they are only passed if the template will actually accept them.
Yasha Krasnou, Jean Boussier
-
Fix
@rails/ujscallingstart()an extra time when using bundlers.Hartley McGuire, Ryunosuke Sato
-
Fix the
captureview helper compatibility with HAML and Slim.When a blank string was captured in HAML or Slim (and possibly other template engines) it would instead return the entire buffer.
Jean Boussier
-
Updated
@rails/ujsfiles to ignore certain data-* attributes when element is contenteditable.This fix was already landed in >= 7.0.4.3, < 7.1.0. [CVE-2023-23913]
Ryunosuke Sato
-
Added validation for HTML tag names in the
tagandcontent_taghelper method.The
tagandcontent_tagmethod now checks that the provided tag name adheres to the HTML specification. If an invalid HTML tag name is provided, the method raises anArgumentErrorwith an appropriate error message.Examples:
# Raises ArgumentError: Invalid HTML5 tag name: 12p content_tag("12p") # Starting with a number # Raises ArgumentError: Invalid HTML5 tag name: "" content_tag("") # Empty tag name # Raises ArgumentError: Invalid HTML5 tag name: div/ tag("div/") # Contains a solidus # Raises ArgumentError: Invalid HTML5 tag name: "image file" tag("image file") # Contains a space
Akhil G Krishnan
Please check 7-1-stable for previous changes.