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::Contentto::ActionView::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 spaceAkhil G Krishnan
Please check [7-1-stable]) for previous changes.