actionview 4.2.11.3 → 5.2.7.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.
- checksums.yaml +4 -4
- data/CHANGELOG.md +115 -245
- data/MIT-LICENSE +1 -1
- data/README.rdoc +5 -6
- data/lib/action_view/base.rb +38 -28
- data/lib/action_view/buffers.rb +3 -1
- data/lib/action_view/context.rb +3 -3
- data/lib/action_view/dependency_tracker.rb +54 -20
- data/lib/action_view/digestor.rb +94 -83
- data/lib/action_view/flows.rb +11 -11
- data/lib/action_view/gem_version.rb +5 -3
- data/lib/action_view/helpers/active_model_helper.rb +17 -11
- data/lib/action_view/helpers/asset_tag_helper.rb +244 -62
- data/lib/action_view/helpers/asset_url_helper.rb +170 -67
- data/lib/action_view/helpers/atom_feed_helper.rb +19 -17
- data/lib/action_view/helpers/cache_helper.rb +105 -42
- data/lib/action_view/helpers/capture_helper.rb +16 -13
- data/lib/action_view/helpers/controller_helper.rb +15 -4
- data/lib/action_view/helpers/csp_helper.rb +24 -0
- data/lib/action_view/helpers/csrf_helper.rb +7 -5
- data/lib/action_view/helpers/date_helper.rb +170 -112
- data/lib/action_view/helpers/debug_helper.rb +7 -6
- data/lib/action_view/helpers/form_helper.rb +521 -127
- data/lib/action_view/helpers/form_options_helper.rb +109 -63
- data/lib/action_view/helpers/form_tag_helper.rb +110 -67
- data/lib/action_view/helpers/javascript_helper.rb +27 -12
- data/lib/action_view/helpers/number_helper.rb +77 -58
- data/lib/action_view/helpers/output_safety_helper.rb +36 -4
- data/lib/action_view/helpers/record_tag_helper.rb +14 -99
- data/lib/action_view/helpers/rendering_helper.rb +6 -5
- data/lib/action_view/helpers/sanitize_helper.rb +20 -15
- data/lib/action_view/helpers/tag_helper.rb +229 -73
- data/lib/action_view/helpers/tags/base.rb +134 -97
- data/lib/action_view/helpers/tags/check_box.rb +20 -18
- data/lib/action_view/helpers/tags/checkable.rb +4 -2
- data/lib/action_view/helpers/tags/collection_check_boxes.rb +12 -33
- data/lib/action_view/helpers/tags/collection_helpers.rb +70 -36
- data/lib/action_view/helpers/tags/collection_radio_buttons.rb +6 -11
- data/lib/action_view/helpers/tags/collection_select.rb +4 -2
- data/lib/action_view/helpers/tags/color_field.rb +3 -1
- data/lib/action_view/helpers/tags/date_field.rb +2 -0
- data/lib/action_view/helpers/tags/date_select.rb +38 -36
- data/lib/action_view/helpers/tags/datetime_field.rb +4 -2
- data/lib/action_view/helpers/tags/datetime_local_field.rb +2 -0
- data/lib/action_view/helpers/tags/datetime_select.rb +2 -0
- data/lib/action_view/helpers/tags/email_field.rb +2 -0
- data/lib/action_view/helpers/tags/file_field.rb +2 -0
- data/lib/action_view/helpers/tags/grouped_collection_select.rb +4 -2
- data/lib/action_view/helpers/tags/hidden_field.rb +2 -0
- data/lib/action_view/helpers/tags/label.rb +3 -1
- data/lib/action_view/helpers/tags/month_field.rb +2 -0
- data/lib/action_view/helpers/tags/number_field.rb +2 -0
- data/lib/action_view/helpers/tags/password_field.rb +3 -1
- data/lib/action_view/helpers/tags/placeholderable.rb +3 -1
- data/lib/action_view/helpers/tags/radio_button.rb +7 -5
- data/lib/action_view/helpers/tags/range_field.rb +2 -0
- data/lib/action_view/helpers/tags/search_field.rb +14 -9
- data/lib/action_view/helpers/tags/select.rb +11 -9
- data/lib/action_view/helpers/tags/tel_field.rb +2 -0
- data/lib/action_view/helpers/tags/text_area.rb +4 -2
- data/lib/action_view/helpers/tags/text_field.rb +8 -7
- data/lib/action_view/helpers/tags/time_field.rb +2 -0
- data/lib/action_view/helpers/tags/time_select.rb +2 -0
- data/lib/action_view/helpers/tags/time_zone_select.rb +3 -1
- data/lib/action_view/helpers/tags/translator.rb +17 -13
- data/lib/action_view/helpers/tags/url_field.rb +2 -0
- data/lib/action_view/helpers/tags/week_field.rb +2 -0
- data/lib/action_view/helpers/tags.rb +3 -1
- data/lib/action_view/helpers/text_helper.rb +55 -36
- data/lib/action_view/helpers/translation_helper.rb +74 -32
- data/lib/action_view/helpers/url_helper.rb +159 -104
- data/lib/action_view/helpers.rb +5 -1
- data/lib/action_view/layouts.rb +65 -58
- data/lib/action_view/log_subscriber.rb +60 -8
- data/lib/action_view/lookup_context.rb +80 -65
- data/lib/action_view/model_naming.rb +3 -1
- data/lib/action_view/path_set.rb +30 -19
- data/lib/action_view/railtie.rb +39 -6
- data/lib/action_view/record_identifier.rb +53 -25
- data/lib/action_view/renderer/abstract_renderer.rb +21 -15
- data/lib/action_view/renderer/partial_renderer/collection_caching.rb +57 -0
- data/lib/action_view/renderer/partial_renderer.rb +218 -214
- data/lib/action_view/renderer/renderer.rb +8 -6
- data/lib/action_view/renderer/streaming_template_renderer.rb +50 -48
- data/lib/action_view/renderer/template_renderer.rb +67 -66
- data/lib/action_view/rendering.rb +19 -14
- data/lib/action_view/routing_url_for.rb +27 -17
- data/lib/action_view/tasks/cache_digests.rake +25 -0
- data/lib/action_view/template/error.rb +16 -16
- data/lib/action_view/template/handlers/builder.rb +10 -11
- data/lib/action_view/template/handlers/erb/erubi.rb +83 -0
- data/lib/action_view/template/handlers/erb.rb +9 -80
- data/lib/action_view/template/handlers/html.rb +11 -0
- data/lib/action_view/template/handlers/raw.rb +3 -3
- data/lib/action_view/template/handlers.rb +11 -7
- data/lib/action_view/template/html.rb +5 -5
- data/lib/action_view/template/resolver.rb +140 -115
- data/lib/action_view/template/text.rb +8 -9
- data/lib/action_view/template/types.rb +18 -18
- data/lib/action_view/template.rb +54 -33
- data/lib/action_view/test_case.rb +50 -29
- data/lib/action_view/testing/resolvers.rb +31 -31
- data/lib/action_view/version.rb +3 -1
- data/lib/action_view/view_paths.rb +28 -34
- data/lib/action_view.rb +8 -7
- data/lib/assets/compiled/rails-ujs.js +720 -0
- metadata +28 -27
- data/lib/action_view/tasks/dependencies.rake +0 -23
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 0b2a6c8b465b9914ab6831b8972018525cb2fc2a0c7f950a693ba7895ff52923
|
4
|
+
data.tar.gz: 1e9b4548ad481fed3e2b7dec7d256a611e858c8eee70e118d38daaa93f72f7b8
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a2e838a423037a30cf4e4e12e8aab64c8e8493f1a370f921be0f7cfbfa92669da4f13cf7cd3c03c42d2c3a2f516b661ba1ca7baa4cf409bf3709b12d3b9692af
|
7
|
+
data.tar.gz: a705450df376aa7abcdd1762ee4f5a9cfc3165bd5102c7c82a7209f8910bd8d46f52d014c3a3feb5f22bfac327414dfeacd75d948b0e2f0ae5d746f0aab71dc7
|
data/CHANGELOG.md
CHANGED
@@ -1,367 +1,237 @@
|
|
1
|
-
## Rails
|
1
|
+
## Rails 5.2.7.1 (April 26, 2022) ##
|
2
2
|
|
3
|
-
*
|
3
|
+
* Fix and add protections for XSS in `ActionView::Helpers` and `ERB::Util`.
|
4
4
|
|
5
|
+
Escape dangerous characters in names of tags and names of attributes in the
|
6
|
+
tag helpers, following the XML specification. Rename the option
|
7
|
+
`:escape_attributes` to `:escape`, to simplify by applying the option to the
|
8
|
+
whole tag.
|
5
9
|
|
6
|
-
|
10
|
+
*Álvaro Martín Fraguas*
|
7
11
|
|
8
|
-
* Restrict local variable names in templates [CVE-2020-8163]
|
9
12
|
|
10
|
-
|
11
|
-
## Rails 4.2.11.1 (March 11, 2019) ##
|
13
|
+
## Rails 5.2.7 (March 10, 2022) ##
|
12
14
|
|
13
15
|
* No changes.
|
14
16
|
|
15
17
|
|
16
|
-
## Rails
|
18
|
+
## Rails 5.2.6.3 (March 08, 2022) ##
|
17
19
|
|
18
20
|
* No changes.
|
19
21
|
|
20
22
|
|
21
|
-
## Rails
|
23
|
+
## Rails 5.2.6.2 (February 11, 2022) ##
|
22
24
|
|
23
25
|
* No changes.
|
24
26
|
|
25
27
|
|
26
|
-
## Rails
|
28
|
+
## Rails 5.2.6.1 (February 11, 2022) ##
|
27
29
|
|
28
30
|
* No changes.
|
29
31
|
|
30
32
|
|
31
|
-
## Rails
|
33
|
+
## Rails 5.2.6 (May 05, 2021) ##
|
32
34
|
|
33
35
|
* No changes.
|
34
36
|
|
35
37
|
|
36
|
-
## Rails
|
38
|
+
## Rails 5.2.5 (March 26, 2021) ##
|
37
39
|
|
38
40
|
* No changes.
|
39
41
|
|
40
42
|
|
41
|
-
## Rails
|
42
|
-
|
43
|
-
* Fix stripping the digest from the automatically generated img tag alt
|
44
|
-
attribute when assets are handled by Sprockets >=3.0.
|
45
|
-
|
46
|
-
*Bart de Water*
|
47
|
-
|
48
|
-
* Create a new `ActiveSupport::SafeBuffer` instance when `content_for` is flushed.
|
43
|
+
## Rails 5.2.4.6 (May 05, 2021) ##
|
49
44
|
|
50
|
-
|
45
|
+
* No changes.
|
51
46
|
|
52
|
-
*Yoong Kang Lim*
|
53
47
|
|
54
|
-
|
48
|
+
## Rails 5.2.4.5 (February 10, 2021) ##
|
55
49
|
|
56
|
-
|
50
|
+
* No changes.
|
57
51
|
|
58
|
-
*Yuichiro Kaneko*
|
59
52
|
|
60
|
-
|
61
|
-
as per the W3 spec: http://www.w3.org/TR/html-markup/datatypes.html#form.data.week
|
53
|
+
## Rails 5.2.4.4 (September 09, 2020) ##
|
62
54
|
|
63
|
-
|
55
|
+
* [CVE-2020-15169] Fix potential XSS vulnerability in the `translate`/`t` helper
|
64
56
|
|
57
|
+
*Jonathan Hefner*
|
65
58
|
|
66
|
-
## Rails 4.2.5.2 (February 26, 2016) ##
|
67
59
|
|
68
|
-
|
60
|
+
## Rails 5.2.4.3 (May 18, 2020) ##
|
69
61
|
|
70
|
-
|
62
|
+
* [CVE-2020-8167] Check that request is same-origin prior to including CSRF token in XHRs
|
71
63
|
|
72
|
-
*Arthur Neves*
|
73
64
|
|
65
|
+
## Rails 5.2.4.2 (March 19, 2020) ##
|
74
66
|
|
75
|
-
|
67
|
+
* Fix possible XSS vector in `escape_javascript` helper
|
76
68
|
|
77
|
-
|
78
|
-
method.
|
69
|
+
CVE-2020-5267
|
79
70
|
|
80
71
|
*Aaron Patterson*
|
81
72
|
|
82
73
|
|
83
|
-
## Rails
|
84
|
-
|
85
|
-
* Fix `mail_to` when called with `nil` as argument.
|
86
|
-
|
87
|
-
*Rafael Mendonça França*
|
88
|
-
|
89
|
-
* `url_for` does not modify its arguments when generating polymorphic URLs.
|
90
|
-
|
91
|
-
*Bernerd Schaefer*
|
92
|
-
|
93
|
-
|
94
|
-
## Rails 4.2.4 (August 24, 2015) ##
|
95
|
-
|
96
|
-
* No Changes *
|
97
|
-
|
98
|
-
|
99
|
-
## Rails 4.2.3 (June 25, 2015) ##
|
100
|
-
|
101
|
-
* `translate` should handle `raise` flag correctly in case of both main and default
|
102
|
-
translation is missing.
|
103
|
-
|
104
|
-
Fixes #19967
|
105
|
-
|
106
|
-
*Bernard Potocki*
|
107
|
-
|
108
|
-
* `translate` allows `default: [[]]` again for a default value of `[]`.
|
109
|
-
|
110
|
-
Fixes #19640.
|
111
|
-
|
112
|
-
*Adam Prescott*
|
113
|
-
|
114
|
-
* `translate` should accept nils as members of the `:default`
|
115
|
-
parameter without raising a translation missing error. Fixes a
|
116
|
-
regression introduced 362557e.
|
117
|
-
|
118
|
-
Fixes #19419
|
119
|
-
|
120
|
-
*Justin Coyne*
|
121
|
-
|
122
|
-
* `number_to_percentage` does not crash with `Float::NAN` or `Float::INFINITY`
|
123
|
-
as input when `precision: 0` is used.
|
124
|
-
|
125
|
-
Fixes #19227.
|
126
|
-
|
127
|
-
*Yves Senn*
|
128
|
-
|
129
|
-
|
130
|
-
## Rails 4.2.2 (June 16, 2015) ##
|
131
|
-
|
132
|
-
* No Changes *
|
74
|
+
## Rails 5.2.4.1 (December 18, 2019) ##
|
133
75
|
|
76
|
+
* No changes.
|
134
77
|
|
135
|
-
## Rails 4.2.1 (March 19, 2015) ##
|
136
|
-
|
137
|
-
* Default translations that have a lower precedence than an html safe default,
|
138
|
-
but are not themselves safe, should not be marked as html_safe.
|
139
|
-
|
140
|
-
*Justin Coyne*
|
141
|
-
|
142
|
-
* Added an explicit error message, in `ActionView::PartialRenderer`
|
143
|
-
for partial `rendering`, when the value of option `as` has invalid characters.
|
144
|
-
|
145
|
-
*Angelo Capilleri*
|
146
|
-
|
147
|
-
|
148
|
-
## Rails 4.2.0 (December 20, 2014) ##
|
149
|
-
|
150
|
-
* Local variable in a partial is now available even if a falsy value is
|
151
|
-
passed to `:object` when rendering a partial.
|
152
|
-
|
153
|
-
Fixes #17373.
|
154
|
-
|
155
|
-
*Agis Anastasopoulos*
|
156
|
-
|
157
|
-
* Add support for `:enforce_utf8` option in `form_for`.
|
158
|
-
|
159
|
-
This is the same option that was added in 06388b0 to `form_tag` and allows
|
160
|
-
users to skip the insertion of the UTF8 enforcer tag in a form.
|
161
|
-
|
162
|
-
* claudiob *
|
163
|
-
|
164
|
-
* Fix a bug that <%= foo(){ %> and <%= foo()do %> in view templates were not regarded
|
165
|
-
as Ruby block calls.
|
166
|
-
|
167
|
-
* Akira Matsuda *
|
168
|
-
|
169
|
-
* Update `select_tag` to work correctly with `:include_blank` option passing a string.
|
170
|
-
|
171
|
-
Fixes #16483.
|
172
|
-
|
173
|
-
*Frank Groeneveld*
|
174
|
-
|
175
|
-
* Changed the meaning of `render "foo/bar"`.
|
176
|
-
|
177
|
-
Previously, calling `render "foo/bar"` in a controller action is equivalent
|
178
|
-
to `render file: "foo/bar"`. In Rails 4.2, this has been changed to mean
|
179
|
-
`render template: "foo/bar"` instead. If you need to render a file, please
|
180
|
-
change your code to use the explicit form (`render file: "foo/bar"`) instead.
|
181
|
-
|
182
|
-
*Jeremy Jackson*
|
183
|
-
|
184
|
-
* Add support for ARIA attributes in tags.
|
185
|
-
|
186
|
-
Example:
|
187
|
-
|
188
|
-
<%= f.text_field :name, aria: { required: "true", hidden: "false" } %>
|
189
|
-
|
190
|
-
now generates:
|
191
|
-
|
192
|
-
<input aria-hidden="false" aria-required="true" id="user_name" name="user[name]" type="text">
|
193
|
-
|
194
|
-
*Paola Garcia Casadiego*
|
195
|
-
|
196
|
-
* Provide a `builder` object when using the `label` form helper in block form.
|
197
78
|
|
198
|
-
|
199
|
-
when you want to customize how a particular label is presented.
|
79
|
+
## Rails 5.2.4 (November 27, 2019) ##
|
200
80
|
|
201
|
-
|
81
|
+
* Allow programmatic click events to trigger Rails UJS click handlers.
|
82
|
+
Programmatic click events (eg. ones generated by `Rails.fire(link, "click")`) don't specify a button. These events were being incorrectly stopped by code meant to ignore scroll wheel and right clicks introduced in #34573.
|
202
83
|
|
203
|
-
*
|
84
|
+
*Sudara Williams*
|
204
85
|
|
205
|
-
Placeholder I18n follows the same convention as `label` I18n.
|
206
86
|
|
207
|
-
|
87
|
+
## Rails 5.2.3 (March 27, 2019) ##
|
208
88
|
|
209
|
-
*
|
89
|
+
* Prevent non-primary mouse keys from triggering Rails UJS click handlers.
|
90
|
+
Firefox fires click events even if the click was triggered by non-primary mouse keys such as right- or scroll-wheel-clicks.
|
91
|
+
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.
|
210
92
|
|
211
|
-
|
93
|
+
```
|
94
|
+
<%= link_to 'Remote', remote_path, class: 'remote', remote: true, data: { type: :json } %>
|
95
|
+
```
|
212
96
|
|
213
|
-
|
97
|
+
Fixes #34541
|
214
98
|
|
215
|
-
|
216
|
-
`#{template_name}_iteration` when rendering partials with collections.
|
99
|
+
*Wolfgang Hobmaier*
|
217
100
|
|
218
|
-
It gives access to the `size` of the collection being iterated over,
|
219
|
-
the current `index` and two convenience methods `first?` and `last?`.
|
220
101
|
|
221
|
-
|
102
|
+
## Rails 5.2.2.1 (March 11, 2019) ##
|
222
103
|
|
223
|
-
*
|
224
|
-
of the `asset_host` proc returning nil.
|
104
|
+
* Only accept formats from registered mime types
|
225
105
|
|
226
|
-
|
106
|
+
A lack of filtering on mime types could allow an attacker to read
|
107
|
+
arbitrary files on the target server or to perform a denial of service
|
108
|
+
attack.
|
227
109
|
|
228
|
-
|
110
|
+
Fixes CVE-2019-5418
|
111
|
+
Fixes CVE-2019-5419
|
229
112
|
|
230
|
-
*John
|
113
|
+
*John Hawthorn*, *Eileen M. Uchitelle*, *Aaron Patterson*
|
231
114
|
|
232
|
-
* Added String support for min and max properties for date field helpers.
|
233
115
|
|
234
|
-
|
116
|
+
## Rails 5.2.2 (December 04, 2018) ##
|
235
117
|
|
236
|
-
*
|
237
|
-
option.
|
118
|
+
* No changes.
|
238
119
|
|
239
|
-
*Lucas Mazza*
|
240
120
|
|
241
|
-
|
121
|
+
## Rails 5.2.1.1 (November 27, 2018) ##
|
242
122
|
|
243
|
-
|
123
|
+
* No changes.
|
244
124
|
|
245
|
-
* Flatten the array parameter in `safe_join`, so it behaves consistently with
|
246
|
-
`Array#join`.
|
247
125
|
|
248
|
-
|
126
|
+
## Rails 5.2.1 (August 07, 2018) ##
|
249
127
|
|
250
|
-
*
|
251
|
-
|
128
|
+
* Fix leak of `skip_default_ids` and `allow_method_names_outside_object` options
|
129
|
+
to HTML attributes.
|
252
130
|
|
253
|
-
*
|
131
|
+
*Yurii Cherniavskyi*
|
254
132
|
|
255
|
-
*
|
133
|
+
* Fix issue with `button_to`'s `to_form_params`
|
256
134
|
|
257
|
-
|
135
|
+
`button_to` was throwing exception when invoked with `params` hash that
|
136
|
+
contains symbol and string keys. The reason for the exception was that
|
137
|
+
`to_form_params` was comparing the given symbol and string keys.
|
258
138
|
|
259
|
-
|
139
|
+
The issue is fixed by turning all keys to strings inside
|
140
|
+
`to_form_params` before comparing them.
|
260
141
|
|
261
|
-
*
|
142
|
+
*Georgi Georgiev*
|
262
143
|
|
263
|
-
|
144
|
+
* Fix JavaScript views rendering does not work with Firefox when using
|
145
|
+
Content Security Policy.
|
264
146
|
|
265
|
-
|
266
|
-
overwrites `config.action_controller.asset_host` for particular asset.
|
147
|
+
Fixes #32577.
|
267
148
|
|
268
|
-
*
|
149
|
+
*Yuji Yaginuma*
|
269
150
|
|
270
|
-
*
|
271
|
-
|
272
|
-
|
151
|
+
* Add the `nonce: true` option for `javascript_include_tag` helper to
|
152
|
+
support automatic nonce generation for Content Security Policy.
|
153
|
+
Works the same way as `javascript_tag nonce: true` does.
|
273
154
|
|
274
|
-
*
|
155
|
+
*Yaroslav Markin*
|
275
156
|
|
276
|
-
* Take label values into account when doing I18n lookups for model attributes.
|
277
157
|
|
278
|
-
|
158
|
+
## Rails 5.2.0 (April 09, 2018) ##
|
279
159
|
|
280
|
-
|
281
|
-
<%= form_for @post do |f| %>
|
282
|
-
<%= f.label :type, value: "long" %>
|
283
|
-
<% end %>
|
160
|
+
* Pass the `:skip_pipeline` option in `image_submit_tag` when calling `path_to_image`.
|
284
161
|
|
285
|
-
|
286
|
-
en:
|
287
|
-
activerecord:
|
288
|
-
attributes:
|
289
|
-
post/long: "Long-form Post"
|
162
|
+
Fixes #32248.
|
290
163
|
|
291
|
-
|
292
|
-
Post".
|
164
|
+
*Andrew White*
|
293
165
|
|
294
|
-
|
166
|
+
* Allow the use of callable objects as group methods for grouped selects.
|
295
167
|
|
296
|
-
|
168
|
+
Until now, the `option_groups_from_collection_for_select` method was only able to
|
169
|
+
handle method names as `group_method` and `group_label_method` parameters,
|
170
|
+
it is now able to receive procs and other callable objects too.
|
297
171
|
|
298
|
-
|
172
|
+
*Jérémie Bonal*
|
299
173
|
|
300
|
-
|
174
|
+
* Add `preload_link_tag` helper.
|
301
175
|
|
302
|
-
|
176
|
+
This helper that allows to the browser to initiate early fetch of resources
|
177
|
+
(different to the specified in `javascript_include_tag` and `stylesheet_link_tag`).
|
178
|
+
Additionally, this sends Early Hints if supported by browser.
|
303
179
|
|
304
|
-
|
180
|
+
*Guillermo Iguaran*
|
305
181
|
|
306
|
-
|
182
|
+
* Change `form_with` to generates ids by default.
|
307
183
|
|
308
|
-
|
309
|
-
`
|
184
|
+
When `form_with` was introduced we disabled the automatic generation of ids
|
185
|
+
that was enabled in `form_for`. This usually is not an good idea since labels don't work
|
186
|
+
when the input doesn't have an id and it made harder to test with Capybara.
|
310
187
|
|
311
|
-
|
188
|
+
You can still disable the automatic generation of ids setting `config.action_view.form_with_generates_ids`
|
189
|
+
to `false.`
|
312
190
|
|
313
|
-
|
314
|
-
<link href="/assets/myicon.ico" rel="shortcut icon" type="image/vnd.microsoft.icon" />
|
191
|
+
*Nick Pezza*
|
315
192
|
|
316
|
-
|
193
|
+
* Fix issues with `field_error_proc` wrapping `optgroup` and select divider `option`.
|
317
194
|
|
318
|
-
|
319
|
-
<link href="/assets/myicon.ico" rel="shortcut icon" type="image/x-icon" />
|
195
|
+
Fixes #31088
|
320
196
|
|
321
|
-
*
|
197
|
+
*Matthias Neumayr*
|
322
198
|
|
323
|
-
* Remove
|
199
|
+
* Remove deprecated Erubis ERB handler.
|
324
200
|
|
325
|
-
|
326
|
-
inside a form are valid HTML5, and the absence of inline styles help in validating
|
327
|
-
for Content Security Policy.
|
201
|
+
*Rafael Mendonça França*
|
328
202
|
|
329
|
-
|
203
|
+
* Remove default `alt` text generation.
|
330
204
|
|
331
|
-
|
205
|
+
Fixes #30096
|
332
206
|
|
333
|
-
|
207
|
+
*Cameron Cundiff*
|
334
208
|
|
335
|
-
|
209
|
+
* Add `srcset` option to `image_tag` helper.
|
336
210
|
|
337
|
-
*
|
211
|
+
*Roberto Miranda*
|
338
212
|
|
339
|
-
|
213
|
+
* Fix issues with scopes and engine on `current_page?` method.
|
340
214
|
|
341
|
-
|
342
|
-
as input.
|
215
|
+
Fixes #29401.
|
343
216
|
|
344
|
-
|
217
|
+
*Nikita Savrov*
|
345
218
|
|
346
|
-
|
219
|
+
* Generate field ids in `collection_check_boxes` and `collection_radio_buttons`.
|
347
220
|
|
348
|
-
|
221
|
+
This makes sure that the labels are linked up with the fields.
|
349
222
|
|
350
|
-
|
223
|
+
Fixes #29014.
|
351
224
|
|
352
|
-
*
|
353
|
-
applied correctly.
|
225
|
+
*Yuji Yaginuma*
|
354
226
|
|
355
|
-
|
227
|
+
* Add `:json` type to `auto_discovery_link_tag` to support [JSON Feeds](https://jsonfeed.org/version/1).
|
356
228
|
|
357
|
-
*
|
229
|
+
*Mike Gunderloy*
|
358
230
|
|
359
|
-
*
|
231
|
+
* Update `distance_of_time_in_words` helper to display better error messages
|
232
|
+
for bad input.
|
360
233
|
|
361
|
-
|
362
|
-
to support variants and allow more flexibility in the future. The support for
|
363
|
-
regular (required) arguments is deprecated and will be removed in Rails 5.0 or later.
|
234
|
+
*Jay Hayes*
|
364
235
|
|
365
|
-
*Piotr Chmolowski, Łukasz Strzałkowski*
|
366
236
|
|
367
|
-
Please check [
|
237
|
+
Please check [5-1-stable](https://github.com/rails/rails/blob/5-1-stable/actionview/CHANGELOG.md) for previous changes.
|
data/MIT-LICENSE
CHANGED
data/README.rdoc
CHANGED
@@ -9,18 +9,18 @@ used to inline short Ruby snippets inside HTML), and XML Builder.
|
|
9
9
|
|
10
10
|
The latest version of Action View can be installed with RubyGems:
|
11
11
|
|
12
|
-
|
12
|
+
$ gem install actionview
|
13
13
|
|
14
|
-
Source code can be downloaded as part of the Rails project on GitHub
|
14
|
+
Source code can be downloaded as part of the Rails project on GitHub:
|
15
15
|
|
16
|
-
* https://github.com/rails/rails/tree/
|
16
|
+
* https://github.com/rails/rails/tree/5-2-stable/actionview
|
17
17
|
|
18
18
|
|
19
19
|
== License
|
20
20
|
|
21
21
|
Action View is released under the MIT license:
|
22
22
|
|
23
|
-
*
|
23
|
+
* https://opensource.org/licenses/MIT
|
24
24
|
|
25
25
|
|
26
26
|
== Support
|
@@ -29,11 +29,10 @@ API documentation is at
|
|
29
29
|
|
30
30
|
* http://api.rubyonrails.org
|
31
31
|
|
32
|
-
Bug reports
|
32
|
+
Bug reports for the Ruby on Rails project can be filed here:
|
33
33
|
|
34
34
|
* https://github.com/rails/rails/issues
|
35
35
|
|
36
36
|
Feature requests should be discussed on the rails-core mailing list here:
|
37
37
|
|
38
38
|
* https://groups.google.com/forum/?fromgroups#!forum/rubyonrails-core
|
39
|
-
|