1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133
|
## 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_assigns`
hash.
*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 `ArgumentError` if `:renderable` object does not respond to `#render_in`.
*Sean Doyle*
* Add the `nonce: true` option for `stylesheet_link_tag` helper to support automatic nonce generation for Content Security Policy.
Works the same way as `javascript_include_tag nonce: true` does.
*Akhil G Krishnan*, *AJ Esler*
* Parse `ActionView::TestCase#rendered` HTML content as `Nokogiri::XML::DocumentFragment` instead of `Nokogiri::XML::Document`.
*Sean Doyle*
* Rename `ActionView::TestCase::Behavior::Content` to `ActionView::TestCase::Behavior::RenderedViewContent`.
Make `RenderedViewContent` inherit from `String`. Make private API with `:nodoc:`
*Sean Doyle*
* Deprecate passing `nil` as value for the `model:` argument to the `form_with` method.
*Collin Jilbert*
* Alias `field_set_tag` helper to `fieldset_tag` to match `<fieldset>` element.
*Sean Doyle*
* Deprecate passing content to void elements when using `tag.br` type tag builders.
*Hartley McGuire*
* Fix the `number_to_human_size` view 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/ujs` calling `start()` an extra time when using bundlers.
*Hartley McGuire*, *Ryunosuke Sato*
* Fix the `capture` view 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/ujs` files 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](https://github.com/advisories/GHSA-xp5h-f8jf-rc8q)]
*Ryunosuke Sato*
* Added validation for HTML tag names in the `tag` and `content_tag` helper method.
The `tag` and `content_tag` method now checks that the provided tag name adheres to the HTML
specification. If an invalid HTML tag name is provided, the method raises an `ArgumentError`
with an appropriate error message.
Examples:
```ruby
# 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](https://github.com/rails/rails/blob/7-1-stable/actionview/CHANGELOG.md) for previous changes.
|