actionview 4.1.16 → 4.2.0.beta1

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 (58) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +85 -483
  3. data/README.rdoc +7 -2
  4. data/lib/action_view.rb +0 -1
  5. data/lib/action_view/base.rb +2 -10
  6. data/lib/action_view/digestor.rb +1 -1
  7. data/lib/action_view/gem_version.rb +3 -3
  8. data/lib/action_view/helpers/asset_tag_helper.rb +32 -25
  9. data/lib/action_view/helpers/asset_url_helper.rb +29 -18
  10. data/lib/action_view/helpers/cache_helper.rb +2 -2
  11. data/lib/action_view/helpers/capture_helper.rb +1 -12
  12. data/lib/action_view/helpers/date_helper.rb +16 -12
  13. data/lib/action_view/helpers/debug_helper.rb +7 -11
  14. data/lib/action_view/helpers/form_helper.rb +65 -13
  15. data/lib/action_view/helpers/form_options_helper.rb +3 -3
  16. data/lib/action_view/helpers/form_tag_helper.rb +137 -28
  17. data/lib/action_view/helpers/javascript_helper.rb +7 -1
  18. data/lib/action_view/helpers/number_helper.rb +8 -10
  19. data/lib/action_view/helpers/output_safety_helper.rb +6 -6
  20. data/lib/action_view/helpers/rendering_helper.rb +6 -6
  21. data/lib/action_view/helpers/sanitize_helper.rb +67 -109
  22. data/lib/action_view/helpers/tag_helper.rb +15 -5
  23. data/lib/action_view/helpers/tags/base.rb +1 -1
  24. data/lib/action_view/helpers/tags/collection_check_boxes.rb +5 -1
  25. data/lib/action_view/helpers/tags/collection_helpers.rb +1 -1
  26. data/lib/action_view/helpers/tags/datetime_field.rb +10 -2
  27. data/lib/action_view/helpers/tags/label.rb +3 -3
  28. data/lib/action_view/helpers/tags/placeholderable.rb +32 -0
  29. data/lib/action_view/helpers/tags/text_area.rb +4 -0
  30. data/lib/action_view/helpers/tags/text_field.rb +4 -1
  31. data/lib/action_view/helpers/tags/week_field.rb +1 -1
  32. data/lib/action_view/helpers/text_helper.rb +25 -8
  33. data/lib/action_view/helpers/translation_helper.rb +29 -25
  34. data/lib/action_view/helpers/url_helper.rb +13 -14
  35. data/lib/action_view/log_subscriber.rb +5 -5
  36. data/lib/action_view/lookup_context.rb +6 -12
  37. data/lib/action_view/model_naming.rb +1 -1
  38. data/lib/action_view/path_set.rb +7 -19
  39. data/lib/action_view/renderer/abstract_renderer.rb +5 -3
  40. data/lib/action_view/renderer/partial_renderer.rb +76 -38
  41. data/lib/action_view/renderer/renderer.rb +0 -4
  42. data/lib/action_view/renderer/template_renderer.rb +5 -6
  43. data/lib/action_view/rendering.rb +7 -6
  44. data/lib/action_view/routing_url_for.rb +13 -5
  45. data/lib/action_view/tasks/dependencies.rake +7 -9
  46. data/lib/action_view/template/handlers.rb +9 -0
  47. data/lib/action_view/template/resolver.rb +7 -24
  48. data/lib/action_view/test_case.rb +13 -7
  49. data/lib/action_view/testing/resolvers.rb +2 -2
  50. data/lib/action_view/view_paths.rb +26 -15
  51. metadata +52 -18
  52. data/lib/action_view/vendor/html-scanner.rb +0 -20
  53. data/lib/action_view/vendor/html-scanner/html/document.rb +0 -68
  54. data/lib/action_view/vendor/html-scanner/html/node.rb +0 -532
  55. data/lib/action_view/vendor/html-scanner/html/sanitizer.rb +0 -188
  56. data/lib/action_view/vendor/html-scanner/html/selector.rb +0 -830
  57. data/lib/action_view/vendor/html-scanner/html/tokenizer.rb +0 -107
  58. data/lib/action_view/vendor/html-scanner/html/version.rb +0 -11
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 7bff487010ac9d04f0679fec5456e0f5085e1e68
4
- data.tar.gz: 5b34f227ac0bb65de1e8e0010101e2c42c1b2d46
3
+ metadata.gz: e42db73b9c0c80c0d953aba7afdfc6c91c23353c
4
+ data.tar.gz: 657ae8d4523265528500bc1d60f1f1b5b37472a1
5
5
  SHA512:
6
- metadata.gz: 7221cf710f6f159f46d5d68b78f2e82ab089e93026e7ece95a7f65ebe8ed005b467a2f383abc460230b22513b42ad61ea7d2b6b6f01a19b376d69ee57b6ff07d
7
- data.tar.gz: c8ef20a01bee5cead6319168ee69295200f6ff4a75e10c48efcc5caa0865f3ef53a8202c084dd51e82caa839750fe86e0d625b86724fe417a4cce421a389eae8
6
+ metadata.gz: b404420f6019af11dce0a8c9bfb946cf60044a5cf5019c64a45acf2593eba9aa793831fb0607cee6527d4e10f5da60895dd3449c3ac54a99aa1fe936408679c7
7
+ data.tar.gz: 88e8454d2c70168f99ff6706b5bd522b7ac337b1bbcf15af74336b7988a3b07e232a474a219a700c4e32d77e97249240db0e16dbc21259af44e194ab36c8278c
@@ -1,145 +1,22 @@
1
- ## Rails 4.1.16 (July 12, 2016) ##
1
+ * Add I18n support for input/textarea placeholder text.
2
2
 
3
- * No changes.
3
+ Placeholder I18n follows the same convention as `label` I18n.
4
4
 
5
+ *Alex Robbin*
5
6
 
6
- ## Rails 4.1.15 (March 07, 2016) ##
7
-
8
- * Changed the meaning of `render "foo/bar"`.
9
-
10
- Previously, calling `render "foo/bar"` in a controller action is equivalent
11
- to `render file: "foo/bar"`. In Rails 4.2, this has been changed to mean
12
- `render template: "foo/bar"` instead. If you need to render a file, please
13
- change your code to use the explicit form (`render file: "foo/bar"`) instead.
14
-
15
- *Jeremy Jackson*
16
-
17
- * Add support for ARIA attributes in tags.
18
-
19
- * Fix stripping the digest from the automatically generated img tag alt
20
- attribute when assets are handled by Sprockets >=3.0.
21
-
22
- *Bart de Water*
23
-
24
- * Generate `week_field` input values using a 1-based index and not a 0-based index
25
- as per the W3 spec: http://www.w3.org/TR/html-markup/datatypes.html#form.data.week
26
-
27
- *Christoph Geschwind*
28
-
29
-
30
- ## Rails 4.1.14.2 (February 26, 2016) ##
31
-
32
- * Do not allow render with unpermitted parameter.
33
-
34
- Fixes CVE-2016-2098.
35
-
36
- *Arthur Neves*
37
-
38
- * Changed the meaning of `render "foo/bar"`.
39
-
40
- Previously, calling `render "foo/bar"` in a controller action is equivalent
41
- to `render file: "foo/bar"`. This has been changed to mean
42
- `render template: "foo/bar"` instead. If you need to render a file, please
43
- change your code to use the explicit form (`render file: "foo/bar"`) instead.
44
-
45
- Fixes CVE-2016-2097.
46
-
47
- *Eileen Uchitelle*
48
-
49
-
50
- ## Rails 4.1.14.1 (January 25, 2015) ##
51
-
52
- * No changes.
53
-
54
-
55
- ## Rails 4.1.14 (November 12, 2015) ##
56
-
57
- * Fix `mail_to` when called with `nil` as argument.
58
-
59
- *Rafael Mendonça França*
60
-
61
-
62
- ## Rails 4.1.13 (August 24, 2015) ##
63
-
64
- * No changes.
65
-
66
-
67
- ## Rails 4.1.12 (June 25, 2015) ##
68
-
69
- * `translate` should handle `raise` flag correctly in case of both main and default
70
- translation is missing.
71
-
72
- Fixes #19967
73
-
74
- *Bernard Potocki*
75
-
76
- * `translate` should accept nils as members of the `:default`
77
- parameter without raising a translation missing error. Fixes a
78
- regression introduced 362557e.
79
-
80
- Fixes #19419
81
-
82
- *Justin Coyne*
83
-
84
- * `number_to_percentage` does not crash with `Float::NAN` or `Float::INFINITY`
85
- as input when `precision: 0` is used.
86
-
87
- Fixes #19227.
88
-
89
- *Yves Senn*
90
-
91
-
92
- ## Rails 4.1.11 (June 16, 2015) ##
93
-
94
- * No changes.
95
-
96
-
97
- ## Rails 4.1.10 (March 19, 2015) ##
98
-
99
- * Local variable in a partial is now available even if a falsy value is
100
- passed to `:object` when rendering a partial.
101
-
102
- Fixes #17373.
103
-
104
- *Agis Anastasopoulos*
105
-
106
- * Default translations that have a lower precidence than an html safe default,
107
- but are not themselves safe, should not be marked as html_safe.
108
-
109
- *Justin Coyne*
110
-
111
- ## Rails 4.1.9 (January 6, 2015) ##
112
-
113
- * Added an explicit error message, in `ActionView::PartialRenderer`
114
- for partial `rendering`, when the value of option `as` has invalid characters.
115
-
116
- *Angelo Capilleri*
117
-
118
-
119
- ## Rails 4.1.8 (November 16, 2014) ##
120
-
121
- * Update `select_tag` to work correctly with `:include_blank` option passing a string.
122
-
123
- Fixes #16483.
124
-
125
- *Frank Groeneveld*
126
-
127
-
128
- ## Rails 4.1.7.1 (November 19, 2014) ##
129
-
130
- * No changes.
131
-
7
+ * Fix that render layout: 'messages/layout' should also be added to the dependency tracker tree.
132
8
 
133
- ## Rails 4.1.7 (October 29, 2014) ##
9
+ *DHH*
134
10
 
135
- * No changes.
11
+ * Add `PartialIteration` object used when rendering collections.
136
12
 
13
+ The iteration object is available as the local variable
14
+ `#{template_name}_iteration` when rendering partials with collections.
137
15
 
138
- ## Rails 4.1.6 (September 11, 2014) ##
16
+ It gives access to the `size` of the collection being iterated over,
17
+ the current `index` and two convenience methods `first?` and `last?`.
139
18
 
140
- * Fix that render layout: 'messages/layout' should also be added to the dependency tracker tree.
141
-
142
- *DHH*
19
+ *Joel Junström*, *Lucas Uyezu*
143
20
 
144
21
  * Return an absolute instead of relative path from an asset url in the case
145
22
  of the `asset_host` proc returning nil
@@ -150,414 +27,139 @@
150
27
 
151
28
  *John F. Douthat*
152
29
 
153
- * Bring `cache_digest` rake tasks up-to-date with the latest API changes
154
-
155
- *Jiri Pospisil*
156
-
157
-
158
- ## Rails 4.1.5 (August 18, 2014) ##
159
-
160
- * No changes.
161
-
162
-
163
- ## Rails 4.1.4 (July 2, 2014) ##
164
-
165
- * No changes.
166
-
167
-
168
- ## Rails 4.1.3 (July 2, 2014) ##
169
-
170
- * No changes.
171
-
172
-
173
- ## Rails 4.1.2 (June 26, 2014) ##
174
-
175
- * Change `asset_path` to use File.join to create proper paths.
176
-
177
- https://some.host.com//assets/some.js
178
-
179
- becomes
180
-
181
- https://some.host.com/assets/some.js
182
-
183
- *Peter Schröder*
184
-
185
- * `collection_check_boxes` respects `:index` option for the hidden field name.
186
-
187
- Fixes #14147.
188
-
189
- *Vasiliy Ermolovich*
190
-
191
- * `date_select` helper with option `with_css_classes: true` does not overwrite other classes.
192
-
193
- *Izumi Wong-Horiuchi*
194
-
195
-
196
- ## Rails 4.1.1 (May 6, 2014) ##
197
-
198
- * No changes.
199
-
200
-
201
- ## Rails 4.1.0 (April 8, 2014) ##
202
-
203
- * Fixed ActionView::Digestor template lookup to use the lookup_context exclusively, and not rely on the passed-in format.
204
- This unfortunately means that the cache_key changed, so upgrading will invalidate all prior caches. Take note if you rely
205
- heavily on caching in production when you push this live.
206
-
207
- *DHH*
208
-
209
- * `number_to_percentage` does not crash with `Float::NAN` or `Float::INFINITY`
210
- as input.
211
-
212
- Fixes #14405.
213
-
214
- *Yves Senn*
215
-
216
- * Take variants into account when calculating template digests in ActionView::Digestor.
217
-
218
- The arguments to ActionView::Digestor#digest are now being passed as a hash
219
- to support variants and allow more flexibility in the future. The support for
220
- regular (required) arguments is deprecated and will be removed in Rails 5.0 or later.
221
-
222
- *Piotr Chmolowski, Łukasz Strzałkowski*
223
-
224
- * Fix a problem where the default options for the `button_tag` helper were not
225
- being applied correctly.
30
+ * Added String support for min and max properties for date field helpers.
226
31
 
227
- Fixes #14255.
228
-
229
- *Sergey Prikhodko*
32
+ *Todd Bealmear*
230
33
 
231
- * Fix ActionView label translation for more than 10 nested elements.
34
+ * The `highlight` helper now accepts a block to be used instead of the `highlighter`
35
+ option.
232
36
 
233
- *Vladimir Krylov*
37
+ *Lucas Mazza*
234
38
 
235
- * Added `:plain`, `:html` and `:body` options for `render` method. Please see
236
- the ActionPack release notes for more detail.
39
+ * The `except` and `highlight` helpers now accept regular expressions.
237
40
 
238
- *Prem Sichanugrist*
41
+ *Jan Szumiec*
239
42
 
240
- * Date select helpers accept a format string for the months selector via the
241
- new option `:month_format_string`.
43
+ * Flatten the array parameter in `safe_join`, so it behaves consistently with
44
+ `Array#join`.
242
45
 
243
- When rendered, the format string gets passed keys `:number` (integer), and
244
- `:name` (string), in order to be able to interpolate them as in
46
+ *Paul Grayson*
245
47
 
246
- '%{name} (%<number>02d)'
48
+ * Honor `html_safe` on array elements in tag values, as we do for plain string
49
+ values.
247
50
 
248
- for example.
51
+ *Paul Grayson*
249
52
 
250
- This option is motivated by #13618.
53
+ * Add `ActionView::Template::Handler.unregister_template_handler`.
251
54
 
252
- *Xavier Noria*
55
+ It performs the opposite of `ActionView::Template::Handler.register_template_handler`.
253
56
 
254
- * Added `config.action_view.raise_on_missing_translations` to define whether an
255
- error should be raised for missing translations.
57
+ *Zuhao Wan*
256
58
 
257
- Fixes #13196.
258
-
259
- *Kassio Borges*
260
-
261
- * Improved ERB dependency detection. New argument types and formattings for the `render`
262
- calls can be matched.
263
-
264
- Fixes #13074, #13116.
265
-
266
- *João Britto*
267
-
268
- * Use `display:none` instead of `display:inline` for hidden fields.
269
-
270
- Fixes #6403.
59
+ * Bring `cache_digest` rake tasks up-to-date with the latest API changes
271
60
 
272
- *Gaelian Ditchburn*
61
+ *Jiri Pospisil*
273
62
 
274
- * The `video_tag` helper now accepts a number for `:size`.
63
+ * Allow custom `:host` option to be passed to `asset_url` helper that
64
+ overwrites `config.action_controller.asset_host` for particular asset.
275
65
 
276
- The `:size` option of the `video_tag` helper now can be specified
277
- with a stringified number. The `width` and `height` attributes of
278
- the generated tag will be the same.
66
+ *Hubert Łępicki*
279
67
 
280
- *Kuldeep Aggarwal*
68
+ * Deprecate `AbstractController::Base.parent_prefixes`.
69
+ Override `AbstractController::Base.local_prefixes` when you want to change
70
+ where to find views.
281
71
 
282
- * Escape format, negative_format and units options of number helpers
72
+ *Nick Sutterer*
283
73
 
284
- Fixes: CVE-2014-0081
74
+ * Take label values into account when doing I18n lookups for model attributes.
285
75
 
286
- * A Cycle object should accept an array and cycle through it as it would with a set of
287
- comma-separated objects.
76
+ The following:
288
77
 
289
- arr = [1,2,3]
290
- cycle(arr) # => '1'
291
- cycle(arr) # => '2'
292
- cycle(arr) # => '3'
78
+ # form.html.erb
79
+ <%= form_for @post do |f| %>
80
+ <%= f.label :type, value: "long" %>
81
+ <% end %>
293
82
 
294
- Previously, it would return the array as a string, because it took the array as a
295
- single object:
83
+ # en.yml
84
+ en:
85
+ activerecord:
86
+ attributes:
87
+ post/long: "Long-form Post"
296
88
 
297
- arr = [1,2,3]
298
- cycle(arr) # => '[1,2,3]'
299
- cycle(arr) # => '[1,2,3]'
300
- cycle(arr) # => '[1,2,3]'
89
+ Used to simply return "long", but now it will return "Long-form
90
+ Post".
301
91
 
302
- *Kristian Freeman*
92
+ *Joshua Cody*
303
93
 
304
- * Label tags generated by collection helpers only inherit the `:index` and
305
- `:namespace` from the input, because only these attributes modify the
306
- `for` attribute of the label. Also, the input attributes don't have
307
- precedence over the label attributes anymore.
94
+ * Change `asset_path` to use File.join to create proper paths:
308
95
 
309
96
  Before:
310
97
 
311
- collection = [[1, true, { class: 'foo' }]]
312
- f.collection_check_boxes :options, collection, :second, :first do |b|
313
- b.label(class: 'my_custom_class')
314
- end
315
-
316
- # => <label class="foo" for="user_active_true">1</label>
98
+ https://some.host.com//assets/some.js
317
99
 
318
100
  After:
319
101
 
320
- collection = [[1, true, { class: 'foo' }]]
321
- f.collection_check_boxes :options, collection, :second, :first do |b|
322
- b.label(class: 'my_custom_class')
323
- end
324
-
325
- # => <label class="my_custom_class" for="user_active_true">1</label>
326
-
327
- *Andriel Nuernberg*
328
-
329
- * Fix a long-standing bug in `json_escape` that caused quotation marks to be stripped.
330
- This method also escapes the \u2028 and \u2029 unicode newline characters which are
331
- treated as \n in JavaScript. This matches the behaviour of the AS::JSON encoder. (The
332
- original change in the encoder was introduced in #10534.)
333
-
334
- *Godfrey Chan*
335
-
336
- * `ActionView::MissingTemplate` includes underscore when raised for a partial.
337
-
338
- Fixes #13002.
339
-
340
- *Yves Senn*
341
-
342
- * Use `set_backtrace` instead of instance variable `@backtrace` in ActionView exceptions.
343
-
344
- *Shimpei Makimoto*
345
-
346
- * Fix `simple_format` escapes own output when passing `sanitize: true`.
347
-
348
- *Paul Seidemann*
349
-
350
- * Ensure `ActionView::Digestor.cache` is correctly cleaned up when
351
- combining recursive templates with `ActionView::Resolver.caching = false`.
352
-
353
- *wyaeld*
354
-
355
- * Fix `collection_check_boxes` so the generated hidden input correctly uses the
356
- name attribute provided in the options hash.
357
-
358
- *Angel N. Sciortino*
359
-
360
- * Fix some edge cases for the AV `select` helper with the `:selected` option.
361
-
362
- *Bogdan Gusiev*
363
-
364
- * Enable passing a block to the `select` helper.
365
-
366
- Example:
367
-
368
- <%= select(report, "campaign_ids") do %>
369
- <% available_campaigns.each do |c| -%>
370
- <%= content_tag(:option, c.name, value: c.id, data: { tags: c.tags.to_json }) %>
371
- <% end -%>
372
- <% end -%>
373
-
374
- *Bogdan Gusiev*
375
-
376
- * Handle `:namespace` form option in collection labels.
377
-
378
- *Vasiliy Ermolovich*
379
-
380
- * Fix `form_for` when both `namespace` and `as` options are present.
381
-
382
- The `as` option no longer overwrites the `namespace` option when
383
- generating an HTML id attribute of the form element.
384
-
385
- *Adam Niedzielski*
386
-
387
- * Fix `excerpt` when `:separator` is `nil`.
388
-
389
- *Paul Nikitochkin*
390
-
391
- * Only cache template digests if `config.cache_template_loading` is true.
392
-
393
- *Josh Lauer*, *Justin Ridgewell*
394
-
395
- * Fix a bug where the lookup details were not being taken into account
396
- when caching the digest of a template - changes to the details now
397
- cause a different cache key to be used.
102
+ https://some.host.com/assets/some.js
398
103
 
399
- *Daniel Schierbeck*
104
+ *Peter Schröder*
400
105
 
401
- * Added an `extname` hash option to the `javascript_include_tag` method.
106
+ * Change `favicon_link_tag` default mimetype from `image/vnd.microsoft.icon` to
107
+ `image/x-icon`.
402
108
 
403
109
  Before:
404
110
 
405
- javascript_include_tag('templates.jst')
406
- # => <script src="/javascripts/templates.jst.js"></script>
111
+ #=> favicon_link_tag 'myicon.ico'
112
+ <link href="/assets/myicon.ico" rel="shortcut icon" type="image/vnd.microsoft.icon" />
407
113
 
408
114
  After:
409
115
 
410
- javascript_include_tag('templates.jst', extname: false )
411
- # => <script src="/javascripts/templates.jst"></script>
412
-
413
- *Nathan Stitt*
414
-
415
- * Fix `current_page?` when the URL contains escaped characters and the
416
- original URL is using the hexadecimal lowercased.
417
-
418
- *Rafael Mendonça França*
419
-
420
- * Fix `text_area` to behave like `text_field` when `nil` is given as a
421
- value.
422
-
423
- Before:
116
+ #=> favicon_link_tag 'myicon.ico'
117
+ <link href="/assets/myicon.ico" rel="shortcut icon" type="image/x-icon" />
424
118
 
425
- f.text_field :field, value: nil #=> <input value="">
426
- f.text_area :field, value: nil #=> <textarea>value of field</textarea>
119
+ *Geoffroy Lorieux*
427
120
 
428
- After:
121
+ * Remove wrapping div with inline styles for hidden form fields.
429
122
 
430
- f.text_area :field, value: nil #=> <textarea></textarea>
123
+ We are dropping HTML 4.01 and XHTML strict compliance since input tags directly
124
+ inside a form are valid HTML5, and the absence of inline styles help in validating
125
+ for Content Security Policy.
431
126
 
432
- *Joel Cogen*
127
+ *Joost Baaij*
433
128
 
434
- * Allow `grouped_options_for_select` to optionally contain html attributes
435
- as the last element of the array.
129
+ * `collection_check_boxes` respects `:index` option for the hidden filed name.
436
130
 
437
- grouped_options_for_select(
438
- [["North America", [['United States','US'],"Canada"], data: { foo: 'bar' }]]
439
- )
131
+ Fixes #14147.
440
132
 
441
133
  *Vasiliy Ermolovich*
442
134
 
443
- * Fix default rendered format problem when calling `render` without :content_type option.
444
- It should return :html. Fix #11393.
445
-
446
- *Gleb Mazovetskiy*, *Oleg*, *kennyj*
447
-
448
- * Fix `link_to` with block and url hashes.
449
-
450
- Before:
451
-
452
- link_to(action: 'bar', controller: 'foo') { content_tag(:span, 'Example site') }
453
- # => "<a action=\"bar\" controller=\"foo\"><span>Example site</span></a>"
454
-
455
- After:
456
-
457
- link_to(action: 'bar', controller: 'foo') { content_tag(:span, 'Example site') }
458
- # => "<a href=\"/foo/bar\"><span>Example site</span></a>"
459
-
460
- *Murahashi Sanemat Kenichi*
461
-
462
- * Fix "Stack Level Too Deep" error when rendering recursive partials.
463
-
464
- Fixes #11340.
465
-
466
- *Rafael Mendonça França*
467
-
468
- * Added an `enforce_utf8` hash option for `form_tag` method.
469
-
470
- Control to output a hidden input tag with name `utf8` without monkey
471
- patching.
472
-
473
- Before:
474
-
475
- form_tag
476
- # => '<form>..<input name="utf8" type="hidden" value="&#x2713;" />..</form>'
477
-
478
- After:
479
-
480
- form_tag
481
- # => '<form>..<input name="utf8" type="hidden" value="&#x2713;" />..</form>'
482
-
483
- form_tag({}, { :enforce_utf8 => false })
484
- # => '<form>....</form>'
485
-
486
- *ma2gedev*
487
-
488
- * Remove the deprecated `include_seconds` argument from `distance_of_time_in_words`,
489
- pass in an `:include_seconds` hash option to use this feature.
490
-
491
- *Carlos Antonio da Silva*
492
-
493
- * Remove deprecated block passing to `FormBuilder#new`.
494
-
495
- *Vipul A M*
496
-
497
- * Pick `DateField` `DateTimeField` and `ColorField` values from stringified options
498
- allowing use of symbol keys with helpers.
499
-
500
- *Jon Rowe*
501
-
502
- * Remove the deprecated `prompt` argument from `grouped_options_for_select`,
503
- pass in a `:prompt` hash option to use this feature.
504
-
505
- *kennyj*
506
-
507
- * Always escape the result of `link_to_unless` methods.
508
-
509
- Before:
510
-
511
- link_to_unless(true, '<b>Showing</b>', 'github.com')
512
- # => "<b>Showing</b>"
513
-
514
- After:
515
-
516
- link_to_unless(true, '<b>Showing</b>', 'github.com')
517
- # => "&lt;b&gt;Showing&lt;/b&gt;"
518
-
519
- *dtaniwaki*
520
-
521
- * Use a case insensitive URI Regexp for #asset_path.
522
-
523
- This fixes a problem where the same asset path using different cases
524
- was generating different URIs.
525
-
526
- Before:
135
+ * `date_select` helper with option `with_css_classes: true` does not overwrite other classes.
527
136
 
528
- image_tag("HTTP://google.com")
529
- # => "<img alt=\"Google\" src=\"/assets/HTTP://google.com\" />"
530
- image_tag("http://google.com")
531
- # => "<img alt=\"Google\" src=\"http://google.com\" />"
137
+ *Izumi Wong-Horiuchi*
532
138
 
533
- After:
139
+ * `number_to_percentage` does not crash with `Float::NAN` or `Float::INFINITY`
140
+ as input.
534
141
 
535
- image_tag("HTTP://google.com")
536
- # => "<img alt=\"Google\" src=\"HTTP://google.com\" />"
537
- image_tag("http://google.com")
538
- # => "<img alt=\"Google\" src=\"http://google.com\" />"
142
+ Fixes #14405.
539
143
 
540
- *David Celis*
144
+ *Yves Senn*
541
145
 
542
- * Allow `collection_check_boxes` and `collection_radio_buttons` to
543
- optionally contain html attributes as the last element of the array.
146
+ * Add `include_hidden` option to `collection_check_boxes` helper.
544
147
 
545
148
  *Vasiliy Ermolovich*
546
149
 
547
- * Update the HTML `BOOLEAN_ATTRIBUTES` in `ActionView::Helpers::TagHelper`
548
- to conform to the latest HTML 5.1 spec. Add attributes `allowfullscreen`,
549
- `default`, `inert`, `sortable`, `truespeed`, `typemustmatch`. Fix attribute
550
- `seamless` (previously misspelled `seemless`).
150
+ * Fixed a problem where the default options for the `button_tag` helper is not
151
+ applied correctly.
551
152
 
552
- *Alex Peattie*
153
+ Fixes #14254.
553
154
 
554
- * Fix an issue where partials with a number in the filename were not
555
- being digested for cache dependencies.
155
+ *Sergey Prikhodko*
556
156
 
557
- *Bryan Ricker*
157
+ * Take variants into account when calculating template digests in ActionView::Digestor.
558
158
 
559
- * First release, ActionView extracted from ActionPack.
159
+ The arguments to ActionView::Digestor#digest are now being passed as a hash
160
+ to support variants and allow more flexibility in the future. The support for
161
+ regular (required) arguments is deprecated and will be removed in Rails 5.0 or later.
560
162
 
561
- *Piotr Sarnacki*, *Łukasz Strzałkowski*
163
+ *Piotr Chmolowski, Łukasz Strzałkowski*
562
164
 
563
- Please check [4-0-stable (ActionPack's CHANGELOG)](https://github.com/rails/rails/blob/4-0-stable/actionpack/CHANGELOG.md) for previous changes.
165
+ Please check [4-1-stable](https://github.com/rails/rails/blob/4-1-stable/actionview/CHANGELOG.md) for previous changes.