actionview 6.0.3.3 → 6.1.1

Sign up to get free protection for your applications and to get access to all the features.

Potentially problematic release.


This version of actionview might be problematic. Click here for more details.

Files changed (63) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +177 -208
  3. data/MIT-LICENSE +1 -1
  4. data/lib/action_view.rb +4 -1
  5. data/lib/action_view/base.rb +19 -50
  6. data/lib/action_view/cache_expiry.rb +1 -2
  7. data/lib/action_view/dependency_tracker.rb +10 -4
  8. data/lib/action_view/digestor.rb +3 -2
  9. data/lib/action_view/gem_version.rb +3 -3
  10. data/lib/action_view/helpers/asset_tag_helper.rb +55 -15
  11. data/lib/action_view/helpers/asset_url_helper.rb +6 -4
  12. data/lib/action_view/helpers/atom_feed_helper.rb +2 -1
  13. data/lib/action_view/helpers/cache_helper.rb +10 -16
  14. data/lib/action_view/helpers/date_helper.rb +4 -4
  15. data/lib/action_view/helpers/form_helper.rb +66 -30
  16. data/lib/action_view/helpers/form_options_helper.rb +7 -16
  17. data/lib/action_view/helpers/form_tag_helper.rb +7 -7
  18. data/lib/action_view/helpers/javascript_helper.rb +3 -3
  19. data/lib/action_view/helpers/number_helper.rb +6 -6
  20. data/lib/action_view/helpers/rendering_helper.rb +11 -3
  21. data/lib/action_view/helpers/sanitize_helper.rb +2 -2
  22. data/lib/action_view/helpers/tag_helper.rb +92 -17
  23. data/lib/action_view/helpers/tags/base.rb +9 -5
  24. data/lib/action_view/helpers/tags/date_field.rb +1 -1
  25. data/lib/action_view/helpers/tags/date_select.rb +2 -2
  26. data/lib/action_view/helpers/tags/datetime_local_field.rb +1 -1
  27. data/lib/action_view/helpers/tags/label.rb +4 -0
  28. data/lib/action_view/helpers/tags/month_field.rb +1 -1
  29. data/lib/action_view/helpers/tags/select.rb +1 -1
  30. data/lib/action_view/helpers/tags/time_field.rb +1 -1
  31. data/lib/action_view/helpers/tags/week_field.rb +1 -1
  32. data/lib/action_view/helpers/text_helper.rb +1 -1
  33. data/lib/action_view/helpers/translation_helper.rb +87 -51
  34. data/lib/action_view/helpers/url_helper.rb +107 -13
  35. data/lib/action_view/layouts.rb +3 -2
  36. data/lib/action_view/log_subscriber.rb +26 -10
  37. data/lib/action_view/lookup_context.rb +3 -18
  38. data/lib/action_view/path_set.rb +0 -3
  39. data/lib/action_view/railtie.rb +39 -46
  40. data/lib/action_view/renderer/abstract_renderer.rb +93 -14
  41. data/lib/action_view/renderer/collection_renderer.rb +196 -0
  42. data/lib/action_view/renderer/object_renderer.rb +34 -0
  43. data/lib/action_view/renderer/partial_renderer.rb +20 -282
  44. data/lib/action_view/renderer/partial_renderer/collection_caching.rb +25 -26
  45. data/lib/action_view/renderer/renderer.rb +44 -1
  46. data/lib/action_view/renderer/streaming_template_renderer.rb +5 -1
  47. data/lib/action_view/renderer/template_renderer.rb +15 -12
  48. data/lib/action_view/rendering.rb +3 -1
  49. data/lib/action_view/routing_url_for.rb +1 -1
  50. data/lib/action_view/template.rb +9 -49
  51. data/lib/action_view/template/handlers.rb +0 -26
  52. data/lib/action_view/template/handlers/erb.rb +10 -14
  53. data/lib/action_view/template/handlers/erb/erubi.rb +9 -7
  54. data/lib/action_view/template/html.rb +1 -11
  55. data/lib/action_view/template/raw_file.rb +0 -3
  56. data/lib/action_view/template/renderable.rb +24 -0
  57. data/lib/action_view/template/resolver.rb +82 -40
  58. data/lib/action_view/template/text.rb +0 -3
  59. data/lib/action_view/test_case.rb +18 -25
  60. data/lib/action_view/testing/resolvers.rb +10 -31
  61. data/lib/action_view/unbound_template.rb +3 -3
  62. data/lib/action_view/view_paths.rb +34 -36
  63. metadata +18 -15
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 11e9d3060ff6ed4cad1dea230198c38b8b6670525163e431346658447276a228
4
- data.tar.gz: ef6fb69f4e721e4ec582cffa015c9f9e4f033f32c8d19dfa4690e5252c414687
3
+ metadata.gz: a164a5f7ce09e84dfab86b45a2df631dc782f50fc22c0cbb92f967c95808de63
4
+ data.tar.gz: 9dd5e8614c436054ebb785df67171b16deb22bb8be3518d57ee8486613919d86
5
5
  SHA512:
6
- metadata.gz: 89a6bdbf6861cf0c681efea6b048c9a83afe314b694fadb869d758406b1425e0ae29a06f88e4eba9218c15da713b9373dd7d19b8811588555ceeed68c63ba51f
7
- data.tar.gz: 25b9352bbdf6807e8d8de25ff3cb893be3bae88d36c9535266d7a61951bd551abcc88678c46947e4950c29219ffdfb97ce9ef48864bd8dacb2f292c98c08ab80
6
+ metadata.gz: 3502d7dd7b2407ce4634afadcd61b2d654f248d91bf85d9f43bd6b1ad150fdd84a45b6f009a04d899be293d123be503a7e497b761c10a576bea6c9248140f599
7
+ data.tar.gz: 3b0695d10e6939424bf14a8cbcea85f6628de02d0a4de37266213883604be8a95daf65eb435cf32260dae4d8b8ad562af7c37a3b426a2589fd305056ec381361
@@ -1,335 +1,304 @@
1
- ## Rails 6.0.3.3 (September 09, 2020) ##
1
+ ## Rails 6.1.1 (January 07, 2021) ##
2
2
 
3
- * [CVE-2020-8185] Fix potential XSS vulnerability in the `translate`/`t` helper.
3
+ * Fix lazy translation in partial with block.
4
4
 
5
- *Jonathan Hefner*
6
-
7
-
8
- ## Rails 6.0.3.2 (June 17, 2020) ##
9
-
10
- * No changes.
11
-
12
-
13
- ## Rails 6.0.3.1 (May 18, 2020) ##
14
-
15
- * [CVE-2020-8167] Check that request is same-origin prior to including CSRF token in XHRs
16
-
17
- ## Rails 6.0.3 (May 06, 2020) ##
18
-
19
- * annotated_source_code returns an empty array so TemplateErrors without a
20
- template in the backtrace are surfaced properly by DebugExceptions.
21
-
22
- *Guilherme Mansur*, *Kasper Timm Hansen*
23
-
24
- * Add autoload for SyntaxErrorInTemplate so syntax errors are correctly raised by DebugExceptions.
25
-
26
- *Guilherme Mansur*, *Gannon McGibbon*
27
-
28
-
29
- ## Rails 6.0.2.2 (March 19, 2020) ##
5
+ *Marek Kasztelnik*
30
6
 
31
- * Fix possible XSS vector in escape_javascript helper
7
+ * Avoid extra `SELECT COUNT` queries when rendering Active Record collections.
32
8
 
33
- CVE-2020-5267
9
+ *aar0nr*
34
10
 
35
- *Aaron Patterson*
11
+ * Link preloading keep integrity hashes in the header.
36
12
 
13
+ *Étienne Barrié*
37
14
 
38
- ## Rails 6.0.2.1 (December 18, 2019) ##
15
+ * Add `config.action_view.preload_links_header` to allow disabling of
16
+ the `Link` header being added by default when using `stylesheet_link_tag`
17
+ and `javascript_include_tag`.
39
18
 
40
- * No changes.
19
+ *Andrew White*
41
20
 
21
+ * The `translate` helper now resolves `default` values when a `nil` key is
22
+ specified, instead of always returning `nil`.
42
23
 
43
- ## Rails 6.0.2 (December 13, 2019) ##
24
+ *Jonathan Hefner*
44
25
 
45
- * No changes.
46
26
 
27
+ ## Rails 6.1.0 (December 09, 2020) ##
47
28
 
48
- ## Rails 6.0.1 (November 5, 2019) ##
29
+ * SanitizeHelper.sanitized_allowed_attributes and SanitizeHelper.sanitized_allowed_tags
30
+ call safe_list_sanitizer's class method
49
31
 
50
- * UJS avoids `Element.closest()` for IE 9 compatibility.
32
+ Fixes #39586
51
33
 
52
- *George Claghorn*
34
+ *Taufiq Muhammadi*
53
35
 
36
+ * Change form_with to generate non-remote forms by default.
54
37
 
55
- ## Rails 6.0.0 (August 16, 2019) ##
38
+ `form_with` would generate a remote form by default. This would confuse
39
+ users because they were forced to handle remote requests.
56
40
 
57
- * ActionView::Helpers::SanitizeHelper: support rails-html-sanitizer 1.1.0.
41
+ All new 6.1 applications will generate non-remote forms by default.
42
+ When upgrading a 6.0 application you can enable remote forms by default by
43
+ setting `config.action_view.form_with_generates_remote_forms` to `true`.
58
44
 
59
- *Juanito Fatas*
45
+ *Petrik de Heus*
60
46
 
47
+ * Yield translated strings to calls of `ActionView::FormBuilder#button`
48
+ when a block is given.
61
49
 
62
- ## Rails 6.0.0.rc2 (July 22, 2019) ##
50
+ *Sean Doyle*
63
51
 
64
- * Fix `select_tag` so that it doesn't change `options` when `include_blank` is present.
65
-
66
- *Younes SERRAJ*
52
+ * Alias `ActionView::Helpers::Tags::Label::LabelBuilder#translation` to
53
+ `#to_s` so that `form.label` calls can yield that value to their blocks.
67
54
 
55
+ *Sean Doyle*
68
56
 
69
- ## Rails 6.0.0.rc1 (April 24, 2019) ##
57
+ * Rename the new `TagHelper#class_names` method to `TagHelper#token_list`,
58
+ and make the original available as an alias.
70
59
 
71
- * Fix partial caching skips same item issue
60
+ token_list("foo", "foo bar")
61
+ # => "foo bar"
72
62
 
73
- If we render cached collection partials with repeated items, those repeated items
74
- will get skipped. For example, if you have 5 identical items in your collection, Rails
75
- only renders the first one when `cached` is set to true. But it should render all
76
- 5 items instead.
63
+ *Sean Doyle*
77
64
 
78
- Fixes #35114.
65
+ * ARIA Array and Hash attributes are treated as space separated `DOMTokenList`
66
+ values. This is useful when declaring lists of label text identifiers in
67
+ `aria-labelledby` or `aria-describedby`.
79
68
 
80
- *Stan Lo*
81
-
82
- * Only clear ActionView cache in development on file changes
69
+ tag.input type: 'checkbox', name: 'published', aria: {
70
+ invalid: @post.errors[:published].any?,
71
+ labelledby: ['published_context', 'published_label'],
72
+ describedby: { published_errors: @post.errors[:published].any? }
73
+ }
74
+ #=> <input
75
+ type="checkbox" name="published" aria-invalid="true"
76
+ aria-labelledby="published_context published_label"
77
+ aria-describedby="published_errors"
78
+ >
83
79
 
84
- To speed up development mode, view caches are only cleared when files in
85
- the view paths have changed. Applications which have implemented custom
86
- `ActionView::Resolver` subclasses may need to add their own cache clearing.
80
+ *Sean Doyle*
87
81
 
88
- *John Hawthorn*
82
+ * Remove deprecated `escape_whitelist` from `ActionView::Template::Handlers::ERB`.
89
83
 
90
- * Fix `ActionView::FixtureResolver` so that it handles template variants correctly.
84
+ *Rafael Mendonça França*
91
85
 
92
- *Edward Rudd*
86
+ * Remove deprecated `find_all_anywhere` from `ActionView::Resolver`.
93
87
 
94
- * `ActionView::TemplateRender.render(file: )` now renders the file directly,
95
- without using any handlers, using the new `Template::RawFile` class.
88
+ *Rafael Mendonça França*
96
89
 
97
- *John Hawthorn*, *Cliff Pruitt*
90
+ * Remove deprecated `formats` from `ActionView::Template::HTML`.
98
91
 
92
+ *Rafael Mendonça França*
99
93
 
100
- ## Rails 6.0.0.beta3 (March 11, 2019) ##
94
+ * Remove deprecated `formats` from `ActionView::Template::RawFile`.
101
95
 
102
- * Only accept formats from registered mime types
96
+ *Rafael Mendonça França*
103
97
 
104
- A lack of filtering on mime types could allow an attacker to read
105
- arbitrary files on the target server or to perform a denial of service
106
- attack.
98
+ * Remove deprecated `formats` from `ActionView::Template::Text`.
107
99
 
108
- Fixes CVE-2019-5418
109
- Fixes CVE-2019-5419
100
+ *Rafael Mendonça França*
110
101
 
111
- *John Hawthorn*, *Eileen M. Uchitelle*, *Aaron Patterson*
102
+ * Remove deprecated `find_file` from `ActionView::PathSet`.
112
103
 
104
+ *Rafael Mendonça França*
113
105
 
114
- ## Rails 6.0.0.beta2 (February 25, 2019) ##
106
+ * Remove deprecated `rendered_format` from `ActionView::LookupContext`.
115
107
 
116
- * `ActionView::Template.finalize_compiled_template_methods` is deprecated with
117
- no replacement.
108
+ *Rafael Mendonça França*
118
109
 
119
- *tenderlove*
110
+ * Remove deprecated `find_file` from `ActionView::ViewPaths`.
120
111
 
121
- * `config.action_view.finalize_compiled_template_methods` is deprecated with
122
- no replacement.
112
+ *Rafael Mendonça França*
123
113
 
124
- *tenderlove*
114
+ * Require that `ActionView::Base` subclasses implement `#compiled_method_container`.
125
115
 
126
- * Ensure unique DOM IDs for collection inputs with float values.
116
+ *Rafael Mendonça França*
127
117
 
128
- Fixes #34974.
118
+ * Remove deprecated support to pass an object that is not a `ActionView::LookupContext` as the first argument
119
+ in `ActionView::Base#initialize`.
129
120
 
130
- *Mark Edmondson*
121
+ *Rafael Mendonça França*
131
122
 
132
- * Single arity template handlers are deprecated. Template handlers must
133
- now accept two parameters, the view object and the source for the view object.
123
+ * Remove deprecated `format` argument `ActionView::Base#initialize`.
134
124
 
135
- *tenderlove*
125
+ *Rafael Mendonça França*
136
126
 
127
+ * Remove deprecated `ActionView::Template#refresh`.
137
128
 
138
- ## Rails 6.0.0.beta1 (January 18, 2019) ##
129
+ *Rafael Mendonça França*
139
130
 
140
- * [Rename npm package](https://github.com/rails/rails/pull/34905) from
141
- [`rails-ujs`](https://www.npmjs.com/package/rails-ujs) to
142
- [`@rails/ujs`](https://www.npmjs.com/package/@rails/ujs).
131
+ * Remove deprecated `ActionView::Template#original_encoding`.
143
132
 
144
- *Javan Makhmali*
133
+ *Rafael Mendonça França*
145
134
 
146
- * Remove deprecated `image_alt` helper.
135
+ * Remove deprecated `ActionView::Template#variants`.
147
136
 
148
137
  *Rafael Mendonça França*
149
138
 
150
- * Fix the need of `#protect_against_forgery?` method defined in
151
- `ActionView::Base` subclasses. This prevents the use of forms and buttons.
152
-
153
- *Genadi Samokovarov*
139
+ * Remove deprecated `ActionView::Template#formats`.
154
140
 
155
- * Fix UJS permanently showing disabled text in a[data-remote][data-disable-with] elements within forms.
141
+ *Rafael Mendonça França*
156
142
 
157
- Fixes #33889.
143
+ * Remove deprecated `ActionView::Template#virtual_path=`.
158
144
 
159
- *Wolfgang Hobmaier*
145
+ *Rafael Mendonça França*
160
146
 
161
- * Prevent non-primary mouse keys from triggering Rails UJS click handlers.
162
- Firefox fires click events even if the click was triggered by non-primary mouse keys such as right- or scroll-wheel-clicks.
163
- For example, right-clicking a link such as the one described below (with an underlying ajax request registered on click) should not cause that request to occur.
147
+ * Remove deprecated `ActionView::Template#updated_at`.
164
148
 
165
- ```
166
- <%= link_to 'Remote', remote_path, class: 'remote', remote: true, data: { type: :json } %>
167
- ```
149
+ *Rafael Mendonça França*
168
150
 
169
- Fixes #34541.
151
+ * Remove deprecated `updated_at` argument required on `ActionView::Template#initialize`.
170
152
 
171
- *Wolfgang Hobmaier*
153
+ *Rafael Mendonça França*
172
154
 
173
- * Prevent `ActionView::TextHelper#word_wrap` from unexpectedly stripping white space from the _left_ side of lines.
155
+ * Make `locals` argument required on `ActionView::Template#initialize`.
174
156
 
175
- For example, given input like this:
157
+ *Rafael Mendonça França*
176
158
 
177
- ```
178
- This is a paragraph with an initial indent,
179
- followed by additional lines that are not indented,
180
- and finally terminated with a blockquote:
181
- "A pithy saying"
182
- ```
159
+ * Remove deprecated `ActionView::Template.finalize_compiled_template_methods`.
183
160
 
184
- Calling `word_wrap` should not trim the indents on the first and last lines.
161
+ *Rafael Mendonça França*
185
162
 
186
- Fixes #34487.
163
+ * Remove deprecated `config.action_view.finalize_compiled_template_methods`
187
164
 
188
- *Lyle Mullican*
165
+ *Rafael Mendonça França*
189
166
 
190
- * Add allocations to template rendering instrumentation.
167
+ * Remove deprecated support to calling `ActionView::ViewPaths#with_fallback` with a block.
191
168
 
192
- Adds the allocations for template and partial rendering to the server output on render.
169
+ *Rafael Mendonça França*
193
170
 
194
- ```
195
- Rendered posts/_form.html.erb (Duration: 7.1ms | Allocations: 6004)
196
- Rendered posts/new.html.erb within layouts/application (Duration: 8.3ms | Allocations: 6654)
197
- Completed 200 OK in 858ms (Views: 848.4ms | ActiveRecord: 0.4ms | Allocations: 1539564)
198
- ```
171
+ * Remove deprecated support to passing absolute paths to `render template:`.
199
172
 
200
- *Eileen M. Uchitelle*, *Aaron Patterson*
173
+ *Rafael Mendonça França*
201
174
 
202
- * Respect the `only_path` option passed to `url_for` when the options are passed in as an array
175
+ * Remove deprecated support to passing relative paths to `render file:`.
203
176
 
204
- Fixes #33237.
177
+ *Rafael Mendonça França*
205
178
 
206
- *Joel Ambass*
179
+ * Remove support to template handlers that don't accept two arguments.
207
180
 
208
- * Deprecate calling private model methods from view helpers.
181
+ *Rafael Mendonça França*
209
182
 
210
- For example, in methods like `options_from_collection_for_select`
211
- and `collection_select` it is possible to call private methods from
212
- the objects used.
183
+ * Remove deprecated pattern argument in `ActionView::Template::PathResolver`.
213
184
 
214
- Fixes #33546.
185
+ *Rafael Mendonça França*
215
186
 
216
- *Ana María Martínez Gómez*
187
+ * Remove deprecated support to call private methods from object in some view helpers.
217
188
 
218
- * Fix issue with `button_to`'s `to_form_params`
189
+ *Rafael Mendonça França*
219
190
 
220
- `button_to` was throwing exception when invoked with `params` hash that
221
- contains symbol and string keys. The reason for the exception was that
222
- `to_form_params` was comparing the given symbol and string keys.
191
+ * `ActionView::Helpers::TranslationHelper#translate` accepts a block, yielding
192
+ the translated text and the fully resolved translation key:
223
193
 
224
- The issue is fixed by turning all keys to strings inside
225
- `to_form_params` before comparing them.
194
+ <%= translate(".relative_key") do |translation, resolved_key| %>
195
+ <span title="<%= resolved_key %>"><%= translation %></span>
196
+ <% end %>
226
197
 
227
- *Georgi Georgiev*
198
+ *Sean Doyle*
228
199
 
229
- * Mark arrays of translations as trusted safe by using the `_html` suffix.
200
+ * Ensure cache fragment digests include all relevant template dependencies when
201
+ fragments are contained in a block passed to the render helper. Remove the
202
+ virtual_path keyword arguments found in CacheHelper as they no longer possess
203
+ any function following 1581cab.
230
204
 
231
- Example:
205
+ Fixes #38984.
232
206
 
233
- en:
234
- foo_html:
235
- - "One"
236
- - "<strong>Two</strong>"
237
- - "Three &#128075; &#128578;"
207
+ *Aaron Lipman*
238
208
 
239
- *Juan Broullon*
209
+ * Deprecate `config.action_view.raise_on_missing_translations` in favor of
210
+ `config.i18n.raise_on_missing_translations`.
240
211
 
241
- * Add `year_format` option to date_select tag. This option makes it possible to customize year
242
- names. Lambda should be passed to use this option.
212
+ New generalized configuration option now determines whether an error should be raised
213
+ for missing translations in controllers and views.
243
214
 
244
- Example:
215
+ *fatkodima*
245
216
 
246
- date_select('user_birthday', '', start_year: 1998, end_year: 2000, year_format: ->year { "Heisei #{year - 1988}" })
217
+ * Instrument layout rendering in `TemplateRenderer#render_with_layout` as `render_layout.action_view`,
218
+ and include (when necessary) the layout's virtual path in notification payloads for collection and partial renders.
247
219
 
248
- The HTML produced:
220
+ *Zach Kemp*
249
221
 
250
- <select id="user_birthday__1i" name="user_birthday[(1i)]">
251
- <option value="1998">Heisei 10</option>
252
- <option value="1999">Heisei 11</option>
253
- <option value="2000">Heisei 12</option>
254
- </select>
255
- /* The rest is omitted */
222
+ * `ActionView::Base.annotate_rendered_view_with_filenames` annotates HTML output with template file names.
256
223
 
257
- *Koki Ryu*
224
+ *Joel Hawksley*, *Aaron Patterson*
258
225
 
259
- * Fix JavaScript views rendering does not work with Firefox when using
260
- Content Security Policy.
226
+ * `ActionView::Helpers::TranslationHelper#translate` returns nil when
227
+ passed `default: nil` without a translation matching `I18n#translate`.
261
228
 
262
- Fixes #32577.
229
+ *Stefan Wrobel*
263
230
 
264
- *Yuji Yaginuma*
231
+ * `OptimizedFileSystemResolver` prefers template details in order of locale,
232
+ formats, variants, handlers.
265
233
 
266
- * Add the `nonce: true` option for `javascript_include_tag` helper to
267
- support automatic nonce generation for Content Security Policy.
268
- Works the same way as `javascript_tag nonce: true` does.
234
+ *Iago Pimenta*
269
235
 
270
- *Yaroslav Markin*
236
+ * Added `class_names` helper to create a CSS class value with conditional classes.
271
237
 
272
- * Remove `ActionView::Helpers::RecordTagHelper`.
238
+ *Joel Hawksley*, *Aaron Patterson*
273
239
 
274
- *Yoshiyuki Hirano*
240
+ * Add support for conditional values to TagBuilder.
275
241
 
276
- * Disable `ActionView::Template` finalizers in test environment.
242
+ *Joel Hawksley*
277
243
 
278
- Template finalization can be expensive in large view test suites.
279
- Add a configuration option,
280
- `action_view.finalize_compiled_template_methods`, and turn it off in
281
- the test environment.
244
+ * `ActionView::Helpers::FormOptionsHelper#select` should mark option for `nil` as selected.
282
245
 
283
- *Simon Coffey*
246
+ ```ruby
247
+ @post = Post.new
248
+ @post.category = nil
284
249
 
285
- * Extract the `confirm` call in its own, overridable method in `rails_ujs`.
250
+ # Before
251
+ select("post", "category", none: nil, programming: 1, economics: 2)
252
+ # =>
253
+ # <select name="post[category]" id="post_category">
254
+ # <option value="">none</option>
255
+ # <option value="1">programming</option>
256
+ # <option value="2">economics</option>
257
+ # </select>
286
258
 
287
- Example:
259
+ # After
260
+ select("post", "category", none: nil, programming: 1, economics: 2)
261
+ # =>
262
+ # <select name="post[category]" id="post_category">
263
+ # <option selected="selected" value="">none</option>
264
+ # <option value="1">programming</option>
265
+ # <option value="2">economics</option>
266
+ # </select>
267
+ ```
288
268
 
289
- Rails.confirm = function(message, element) {
290
- return (my_bootstrap_modal_confirm(message));
291
- }
269
+ *bogdanvlviv*
292
270
 
293
- *Mathieu Mahé*
271
+ * Log lines for partial renders and started template renders are now
272
+ emitted at the `DEBUG` level instead of `INFO`.
294
273
 
295
- * Enable select tag helper to mark `prompt` option as `selected` and/or `disabled` for `required`
296
- field.
274
+ Completed template renders are still logged at the `INFO` level.
297
275
 
298
- Example:
276
+ *DHH*
299
277
 
300
- select :post,
301
- :category,
302
- ["lifestyle", "programming", "spiritual"],
303
- { selected: "", disabled: "", prompt: "Choose one" },
304
- { required: true }
278
+ * ActionView::Helpers::SanitizeHelper: support rails-html-sanitizer 1.1.0.
305
279
 
306
- Placeholder option would be selected and disabled.
280
+ *Juanito Fatas*
307
281
 
308
- The HTML produced:
282
+ * Added `phone_to` helper method to create a link from mobile numbers.
309
283
 
310
- <select required="required" name="post[category]" id="post_category">
311
- <option disabled="disabled" selected="selected" value="">Choose one</option>
312
- <option value="lifestyle">lifestyle</option>
313
- <option value="programming">programming</option>
314
- <option value="spiritual">spiritual</option></select>
284
+ *Pietro Moro*
315
285
 
316
- *Sergey Prikhodko*
286
+ * annotated_source_code returns an empty array so TemplateErrors without a
287
+ template in the backtrace are surfaced properly by DebugExceptions.
317
288
 
318
- * Don't enforce UTF-8 by default.
289
+ *Guilherme Mansur*, *Kasper Timm Hansen*
319
290
 
320
- With the disabling of TLS 1.0 by most major websites, continuing to run
321
- IE8 or lower becomes increasingly difficult so default to not enforcing
322
- UTF-8 encoding as it's not relevant to other browsers.
291
+ * Add autoload for SyntaxErrorInTemplate so syntax errors are correctly raised by DebugExceptions.
323
292
 
324
- *Andrew White*
293
+ *Guilherme Mansur*, *Gannon McGibbon*
325
294
 
326
- * Change translation key of `submit_tag` from `module_name_class_name` to `module_name/class_name`.
295
+ * `RenderingHelper` supports rendering objects that `respond_to?` `:render_in`.
327
296
 
328
- *Rui Onodera*
297
+ *Joel Hawksley*, *Natasha Umer*, *Aaron Patterson*, *Shawn Allen*, *Emily Plummer*, *Diana Mounter*, *John Hawthorn*, *Nathan Herald*, *Zaid Zawaideh*, *Zach Ahn*
329
298
 
330
- * Rails 6 requires Ruby 2.5.0 or newer.
299
+ * Fix `select_tag` so that it doesn't change `options` when `include_blank` is present.
331
300
 
332
- *Jeremy Daer*, *Kasper Timm Hansen*
301
+ *Younes SERRAJ*
333
302
 
334
303
 
335
- Please check [5-2-stable](https://github.com/rails/rails/blob/5-2-stable/actionview/CHANGELOG.md) for previous changes.
304
+ Please check [6-0-stable](https://github.com/rails/rails/blob/6-0-stable/actionview/CHANGELOG.md) for previous changes.