actionview 6.0.4.7 → 6.1.0.rc1
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 +152 -293
- data/MIT-LICENSE +1 -1
- data/README.rdoc +1 -1
- data/lib/action_view/base.rb +21 -52
- data/lib/action_view/cache_expiry.rb +1 -2
- data/lib/action_view/context.rb +0 -1
- data/lib/action_view/dependency_tracker.rb +10 -4
- data/lib/action_view/digestor.rb +3 -2
- data/lib/action_view/gem_version.rb +3 -3
- data/lib/action_view/helpers/asset_tag_helper.rb +40 -15
- data/lib/action_view/helpers/asset_url_helper.rb +6 -4
- data/lib/action_view/helpers/atom_feed_helper.rb +2 -1
- data/lib/action_view/helpers/cache_helper.rb +10 -16
- data/lib/action_view/helpers/date_helper.rb +4 -4
- data/lib/action_view/helpers/form_helper.rb +59 -17
- data/lib/action_view/helpers/form_options_helper.rb +7 -16
- data/lib/action_view/helpers/form_tag_helper.rb +8 -6
- data/lib/action_view/helpers/javascript_helper.rb +3 -3
- data/lib/action_view/helpers/number_helper.rb +6 -6
- data/lib/action_view/helpers/rendering_helper.rb +11 -3
- data/lib/action_view/helpers/sanitize_helper.rb +2 -2
- data/lib/action_view/helpers/tag_helper.rb +92 -17
- data/lib/action_view/helpers/tags/base.rb +9 -5
- data/lib/action_view/helpers/tags/date_field.rb +1 -1
- data/lib/action_view/helpers/tags/date_select.rb +2 -2
- data/lib/action_view/helpers/tags/datetime_local_field.rb +1 -1
- data/lib/action_view/helpers/tags/label.rb +4 -0
- data/lib/action_view/helpers/tags/month_field.rb +1 -1
- data/lib/action_view/helpers/tags/select.rb +1 -1
- data/lib/action_view/helpers/tags/time_field.rb +1 -1
- data/lib/action_view/helpers/tags/week_field.rb +1 -1
- data/lib/action_view/helpers/text_helper.rb +1 -1
- data/lib/action_view/helpers/translation_helper.rb +88 -53
- data/lib/action_view/helpers/url_helper.rb +107 -13
- data/lib/action_view/layouts.rb +3 -2
- data/lib/action_view/log_subscriber.rb +26 -10
- data/lib/action_view/lookup_context.rb +3 -18
- data/lib/action_view/path_set.rb +0 -3
- data/lib/action_view/railtie.rb +35 -46
- data/lib/action_view/renderer/abstract_renderer.rb +93 -14
- data/lib/action_view/renderer/collection_renderer.rb +192 -0
- data/lib/action_view/renderer/object_renderer.rb +34 -0
- data/lib/action_view/renderer/partial_renderer/collection_caching.rb +25 -26
- data/lib/action_view/renderer/partial_renderer.rb +20 -282
- data/lib/action_view/renderer/renderer.rb +44 -1
- data/lib/action_view/renderer/streaming_template_renderer.rb +5 -1
- data/lib/action_view/renderer/template_renderer.rb +15 -12
- data/lib/action_view/rendering.rb +3 -1
- data/lib/action_view/routing_url_for.rb +1 -1
- data/lib/action_view/template/handlers/erb/erubi.rb +9 -7
- data/lib/action_view/template/handlers/erb.rb +10 -14
- data/lib/action_view/template/handlers.rb +0 -26
- data/lib/action_view/template/html.rb +1 -11
- data/lib/action_view/template/raw_file.rb +0 -3
- data/lib/action_view/template/renderable.rb +24 -0
- data/lib/action_view/template/resolver.rb +82 -40
- data/lib/action_view/template/text.rb +0 -3
- data/lib/action_view/template.rb +9 -49
- data/lib/action_view/test_case.rb +18 -25
- data/lib/action_view/testing/resolvers.rb +10 -31
- data/lib/action_view/unbound_template.rb +3 -3
- data/lib/action_view/view_paths.rb +34 -36
- data/lib/action_view.rb +4 -1
- data/lib/assets/compiled/rails-ujs.js +1 -1
- metadata +20 -17
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c6501d14d3ded1b369986260419c6aee627f1b7799b3c3c4218873bfe8d4b479
|
4
|
+
data.tar.gz: 989267ee82dfffffb28da4b86b9eb462dd4e0bd3d379763b6b1e263ff29739b1
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 0604fd5bb813f716bff94d3ac476ad3a466b8ea6e02e022b4ee29cf5f3a0389ec70f50fc532e37a857307b2180e69d0db2c0c42abcf603677789df8b44acad0f
|
7
|
+
data.tar.gz: 54f5d17012d6817bd687d80dff5bd36ffff2ea6fc8461ac2e81fde65a73dea829a076351ff812516f80869ae0dbda5eda4d8181b731bfd31ae92b56cca03ab53
|
data/CHANGELOG.md
CHANGED
@@ -1,401 +1,260 @@
|
|
1
|
-
## Rails 6.0.
|
1
|
+
## Rails 6.1.0.rc1 (November 02, 2020) ##
|
2
2
|
|
3
|
-
*
|
3
|
+
* Yield translated strings to calls of `ActionView::FormBuilder#button`
|
4
|
+
when a block is given.
|
4
5
|
|
6
|
+
*Sean Doyle*
|
5
7
|
|
6
|
-
|
8
|
+
* Alias `ActionView::Helpers::Tags::Label::LabelBuilder#translation` to
|
9
|
+
`#to_s` so that `form.label` calls can yield that value to their blocks.
|
7
10
|
|
8
|
-
*
|
11
|
+
*Sean Doyle*
|
9
12
|
|
13
|
+
* Rename the new `TagHelper#class_names` method to `TagHelper#token_list`,
|
14
|
+
and make the original available as an alias.
|
10
15
|
|
11
|
-
|
16
|
+
token_list("foo", "foo bar")
|
17
|
+
# => "foo bar"
|
12
18
|
|
13
|
-
*
|
19
|
+
*Sean Doyle*
|
14
20
|
|
21
|
+
* ARIA Array and Hash attributes are treated as space separated `DOMTokenList`
|
22
|
+
values. This is useful when declaring lists of label text identifiers in
|
23
|
+
`aria-labelledby` or `aria-describedby`.
|
15
24
|
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
## Rails 6.0.4.2 (December 14, 2021) ##
|
27
|
-
|
28
|
-
* No changes.
|
29
|
-
|
30
|
-
|
31
|
-
## Rails 6.0.4.1 (August 19, 2021) ##
|
32
|
-
|
33
|
-
* No changes.
|
34
|
-
|
35
|
-
|
36
|
-
## Rails 6.0.4 (June 15, 2021) ##
|
37
|
-
|
38
|
-
* SanitizeHelper.sanitized_allowed_attributes and SanitizeHelper.sanitized_allowed_tags
|
39
|
-
call safe_list_sanitizer's class method
|
40
|
-
|
41
|
-
Fixes #39586
|
42
|
-
|
43
|
-
*Taufiq Muhammadi*
|
44
|
-
|
45
|
-
|
46
|
-
## Rails 6.0.3.7 (May 05, 2021) ##
|
47
|
-
|
48
|
-
* No changes.
|
49
|
-
|
50
|
-
|
51
|
-
## Rails 6.0.3.6 (March 26, 2021) ##
|
52
|
-
|
53
|
-
* No changes.
|
54
|
-
|
55
|
-
|
56
|
-
## Rails 6.0.3.5 (February 10, 2021) ##
|
57
|
-
|
58
|
-
* No changes.
|
59
|
-
|
60
|
-
|
61
|
-
## Rails 6.0.3.4 (October 07, 2020) ##
|
62
|
-
|
63
|
-
* No changes.
|
64
|
-
|
65
|
-
|
66
|
-
## Rails 6.0.3.3 (September 09, 2020) ##
|
67
|
-
|
68
|
-
* [CVE-2020-8185] Fix potential XSS vulnerability in the `translate`/`t` helper.
|
69
|
-
|
70
|
-
*Jonathan Hefner*
|
71
|
-
|
72
|
-
|
73
|
-
## Rails 6.0.3.2 (June 17, 2020) ##
|
74
|
-
|
75
|
-
* No changes.
|
76
|
-
|
77
|
-
|
78
|
-
## Rails 6.0.3.1 (May 18, 2020) ##
|
79
|
-
|
80
|
-
* [CVE-2020-8167] Check that request is same-origin prior to including CSRF token in XHRs
|
81
|
-
|
82
|
-
|
83
|
-
## Rails 6.0.3 (May 06, 2020) ##
|
84
|
-
|
85
|
-
* annotated_source_code returns an empty array so TemplateErrors without a
|
86
|
-
template in the backtrace are surfaced properly by DebugExceptions.
|
87
|
-
|
88
|
-
*Guilherme Mansur*, *Kasper Timm Hansen*
|
89
|
-
|
90
|
-
* Add autoload for SyntaxErrorInTemplate so syntax errors are correctly raised by DebugExceptions.
|
91
|
-
|
92
|
-
*Guilherme Mansur*, *Gannon McGibbon*
|
93
|
-
|
94
|
-
|
95
|
-
## Rails 6.0.2.2 (March 19, 2020) ##
|
96
|
-
|
97
|
-
* Fix possible XSS vector in escape_javascript helper
|
98
|
-
|
99
|
-
CVE-2020-5267
|
100
|
-
|
101
|
-
*Aaron Patterson*
|
102
|
-
|
103
|
-
|
104
|
-
## Rails 6.0.2.1 (December 18, 2019) ##
|
105
|
-
|
106
|
-
* No changes.
|
107
|
-
|
108
|
-
|
109
|
-
## Rails 6.0.2 (December 13, 2019) ##
|
110
|
-
|
111
|
-
* No changes.
|
112
|
-
|
113
|
-
|
114
|
-
## Rails 6.0.1 (November 5, 2019) ##
|
115
|
-
|
116
|
-
* UJS avoids `Element.closest()` for IE 9 compatibility.
|
117
|
-
|
118
|
-
*George Claghorn*
|
119
|
-
|
120
|
-
|
121
|
-
## Rails 6.0.0 (August 16, 2019) ##
|
122
|
-
|
123
|
-
* ActionView::Helpers::SanitizeHelper: support rails-html-sanitizer 1.1.0.
|
124
|
-
|
125
|
-
*Juanito Fatas*
|
126
|
-
|
127
|
-
|
128
|
-
## Rails 6.0.0.rc2 (July 22, 2019) ##
|
129
|
-
|
130
|
-
* Fix `select_tag` so that it doesn't change `options` when `include_blank` is present.
|
131
|
-
|
132
|
-
*Younes SERRAJ*
|
133
|
-
|
134
|
-
|
135
|
-
## Rails 6.0.0.rc1 (April 24, 2019) ##
|
136
|
-
|
137
|
-
* Fix partial caching skips same item issue
|
138
|
-
|
139
|
-
If we render cached collection partials with repeated items, those repeated items
|
140
|
-
will get skipped. For example, if you have 5 identical items in your collection, Rails
|
141
|
-
only renders the first one when `cached` is set to true. But it should render all
|
142
|
-
5 items instead.
|
143
|
-
|
144
|
-
Fixes #35114.
|
145
|
-
|
146
|
-
*Stan Lo*
|
147
|
-
|
148
|
-
* Only clear ActionView cache in development on file changes
|
25
|
+
tag.input type: 'checkbox', name: 'published', aria: {
|
26
|
+
invalid: @post.errors[:published].any?,
|
27
|
+
labelledby: ['published_context', 'published_label'],
|
28
|
+
describedby: { published_errors: @post.errors[:published].any? }
|
29
|
+
}
|
30
|
+
#=> <input
|
31
|
+
type="checkbox" name="published" aria-invalid="true"
|
32
|
+
aria-labelledby="published_context published_label"
|
33
|
+
aria-describedby="published_errors"
|
34
|
+
>
|
149
35
|
|
150
|
-
|
151
|
-
the view paths have changed. Applications which have implemented custom
|
152
|
-
`ActionView::Resolver` subclasses may need to add their own cache clearing.
|
36
|
+
*Sean Doyle*
|
153
37
|
|
154
|
-
|
38
|
+
* Remove deprecated `escape_whitelist` from `ActionView::Template::Handlers::ERB`.
|
155
39
|
|
156
|
-
*
|
40
|
+
*Rafael Mendonça França*
|
157
41
|
|
158
|
-
|
42
|
+
* Remove deprecated `find_all_anywhere` from `ActionView::Resolver`.
|
159
43
|
|
160
|
-
*
|
161
|
-
without using any handlers, using the new `Template::RawFile` class.
|
44
|
+
*Rafael Mendonça França*
|
162
45
|
|
163
|
-
|
46
|
+
* Remove deprecated `formats` from `ActionView::Template::HTML`.
|
164
47
|
|
48
|
+
*Rafael Mendonça França*
|
165
49
|
|
166
|
-
|
50
|
+
* Remove deprecated `formats` from `ActionView::Template::RawFile`.
|
167
51
|
|
168
|
-
*
|
52
|
+
*Rafael Mendonça França*
|
169
53
|
|
170
|
-
|
171
|
-
arbitrary files on the target server or to perform a denial of service
|
172
|
-
attack.
|
54
|
+
* Remove deprecated `formats` from `ActionView::Template::Text`.
|
173
55
|
|
174
|
-
|
175
|
-
Fixes CVE-2019-5419
|
56
|
+
*Rafael Mendonça França*
|
176
57
|
|
177
|
-
|
58
|
+
* Remove deprecated `find_file` from `ActionView::PathSet`.
|
178
59
|
|
60
|
+
*Rafael Mendonça França*
|
179
61
|
|
180
|
-
|
62
|
+
* Remove deprecated `rendered_format` from `ActionView::LookupContext`.
|
181
63
|
|
182
|
-
*
|
183
|
-
no replacement.
|
64
|
+
*Rafael Mendonça França*
|
184
65
|
|
185
|
-
|
66
|
+
* Remove deprecated `find_file` from `ActionView::ViewPaths`.
|
186
67
|
|
187
|
-
*
|
188
|
-
no replacement.
|
68
|
+
*Rafael Mendonça França*
|
189
69
|
|
190
|
-
|
70
|
+
* Require that `ActionView::Base` subclasses implement `#compiled_method_container`.
|
191
71
|
|
192
|
-
*
|
72
|
+
*Rafael Mendonça França*
|
193
73
|
|
194
|
-
|
74
|
+
* Remove deprecated support to pass an object that is not a `ActionView::LookupContext` as the first argument
|
75
|
+
in `ActionView::Base#initialize`.
|
195
76
|
|
196
|
-
*
|
77
|
+
*Rafael Mendonça França*
|
197
78
|
|
198
|
-
*
|
199
|
-
now accept two parameters, the view object and the source for the view object.
|
79
|
+
* Remove deprecated `format` argument `ActionView::Base#initialize`.
|
200
80
|
|
201
|
-
*
|
81
|
+
*Rafael Mendonça França*
|
202
82
|
|
83
|
+
* Remove deprecated `ActionView::Template#refresh`.
|
203
84
|
|
204
|
-
|
85
|
+
*Rafael Mendonça França*
|
205
86
|
|
206
|
-
*
|
207
|
-
[`rails-ujs`](https://www.npmjs.com/package/rails-ujs) to
|
208
|
-
[`@rails/ujs`](https://www.npmjs.com/package/@rails/ujs).
|
87
|
+
* Remove deprecated `ActionView::Template#original_encoding`.
|
209
88
|
|
210
|
-
*
|
89
|
+
*Rafael Mendonça França*
|
211
90
|
|
212
|
-
* Remove deprecated `
|
91
|
+
* Remove deprecated `ActionView::Template#variants`.
|
213
92
|
|
214
93
|
*Rafael Mendonça França*
|
215
94
|
|
216
|
-
*
|
217
|
-
`ActionView::Base` subclasses. This prevents the use of forms and buttons.
|
95
|
+
* Remove deprecated `ActionView::Template#formats`.
|
218
96
|
|
219
|
-
*
|
220
|
-
|
221
|
-
* Fix UJS permanently showing disabled text in a[data-remote][data-disable-with] elements within forms.
|
97
|
+
*Rafael Mendonça França*
|
222
98
|
|
223
|
-
|
99
|
+
* Remove deprecated `ActionView::Template#virtual_path=`.
|
224
100
|
|
225
|
-
*
|
101
|
+
*Rafael Mendonça França*
|
226
102
|
|
227
|
-
*
|
228
|
-
Firefox fires click events even if the click was triggered by non-primary mouse keys such as right- or scroll-wheel-clicks.
|
229
|
-
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.
|
103
|
+
* Remove deprecated `ActionView::Template#updated_at`.
|
230
104
|
|
231
|
-
|
232
|
-
<%= link_to 'Remote', remote_path, class: 'remote', remote: true, data: { type: :json } %>
|
233
|
-
```
|
105
|
+
*Rafael Mendonça França*
|
234
106
|
|
235
|
-
|
107
|
+
* Remove deprecated `updated_at` argument required on `ActionView::Template#initialize`.
|
236
108
|
|
237
|
-
*
|
109
|
+
*Rafael Mendonça França*
|
238
110
|
|
239
|
-
*
|
111
|
+
* Make `locals` argument required on `ActionView::Template#initialize`.
|
240
112
|
|
241
|
-
|
113
|
+
*Rafael Mendonça França*
|
242
114
|
|
243
|
-
|
244
|
-
This is a paragraph with an initial indent,
|
245
|
-
followed by additional lines that are not indented,
|
246
|
-
and finally terminated with a blockquote:
|
247
|
-
"A pithy saying"
|
248
|
-
```
|
115
|
+
* Remove deprecated `ActionView::Template.finalize_compiled_template_methods`.
|
249
116
|
|
250
|
-
|
117
|
+
*Rafael Mendonça França*
|
251
118
|
|
252
|
-
|
119
|
+
* Remove deprecated `config.action_view.finalize_compiled_template_methods`
|
253
120
|
|
254
|
-
*
|
121
|
+
*Rafael Mendonça França*
|
255
122
|
|
256
|
-
*
|
123
|
+
* Remove deprecated support to calling `ActionView::ViewPaths#with_fallback` with a block.
|
257
124
|
|
258
|
-
|
125
|
+
*Rafael Mendonça França*
|
259
126
|
|
260
|
-
|
261
|
-
Rendered posts/_form.html.erb (Duration: 7.1ms | Allocations: 6004)
|
262
|
-
Rendered posts/new.html.erb within layouts/application (Duration: 8.3ms | Allocations: 6654)
|
263
|
-
Completed 200 OK in 858ms (Views: 848.4ms | ActiveRecord: 0.4ms | Allocations: 1539564)
|
264
|
-
```
|
127
|
+
* Remove deprecated support to passing absolute paths to `render template:`.
|
265
128
|
|
266
|
-
*
|
129
|
+
*Rafael Mendonça França*
|
267
130
|
|
268
|
-
*
|
131
|
+
* Remove deprecated support to passing relative paths to `render file:`.
|
269
132
|
|
270
|
-
|
133
|
+
*Rafael Mendonça França*
|
271
134
|
|
272
|
-
|
135
|
+
* Remove support to template handlers that don't accept two arguments.
|
273
136
|
|
274
|
-
*
|
137
|
+
*Rafael Mendonça França*
|
275
138
|
|
276
|
-
|
277
|
-
and `collection_select` it is possible to call private methods from
|
278
|
-
the objects used.
|
139
|
+
* Remove deprecated pattern argument in `ActionView::Template::PathResolver`.
|
279
140
|
|
280
|
-
|
141
|
+
*Rafael Mendonça França*
|
281
142
|
|
282
|
-
|
143
|
+
* Remove deprecated support to call private methods from object in some view helpers.
|
283
144
|
|
284
|
-
*
|
145
|
+
*Rafael Mendonça França*
|
285
146
|
|
286
|
-
|
287
|
-
|
288
|
-
`to_form_params` was comparing the given symbol and string keys.
|
147
|
+
* `ActionView::Helpers::TranslationHelper#translate` accepts a block, yielding
|
148
|
+
the translated text and the fully resolved translation key:
|
289
149
|
|
290
|
-
|
291
|
-
|
150
|
+
<%= translate(".relative_key") do |translation, resolved_key| %>
|
151
|
+
<span title="<%= resolved_key %>"><%= translation %></span>
|
152
|
+
<% end %>
|
292
153
|
|
293
|
-
*
|
154
|
+
*Sean Doyle*
|
294
155
|
|
295
|
-
*
|
156
|
+
* Ensure cache fragment digests include all relevant template dependencies when
|
157
|
+
fragments are contained in a block passed to the render helper. Remove the
|
158
|
+
virtual_path keyword arguments found in CacheHelper as they no longer possess
|
159
|
+
any function following 1581cab.
|
296
160
|
|
297
|
-
|
161
|
+
Fixes #38984.
|
298
162
|
|
299
|
-
|
300
|
-
foo_html:
|
301
|
-
- "One"
|
302
|
-
- "<strong>Two</strong>"
|
303
|
-
- "Three 👋 🙂"
|
163
|
+
*Aaron Lipman*
|
304
164
|
|
305
|
-
|
165
|
+
* Deprecate `config.action_view.raise_on_missing_translations` in favor of
|
166
|
+
`config.i18n.raise_on_missing_translations`.
|
306
167
|
|
307
|
-
|
308
|
-
|
168
|
+
New generalized configuration option now determines whether an error should be raised
|
169
|
+
for missing translations in controllers and views.
|
309
170
|
|
310
|
-
|
171
|
+
*fatkodima*
|
311
172
|
|
312
|
-
|
173
|
+
* Instrument layout rendering in `TemplateRenderer#render_with_layout` as `render_layout.action_view`,
|
174
|
+
and include (when necessary) the layout's virtual path in notification payloads for collection and partial renders.
|
313
175
|
|
314
|
-
|
176
|
+
*Zach Kemp*
|
315
177
|
|
316
|
-
|
317
|
-
<option value="1998">Heisei 10</option>
|
318
|
-
<option value="1999">Heisei 11</option>
|
319
|
-
<option value="2000">Heisei 12</option>
|
320
|
-
</select>
|
321
|
-
/* The rest is omitted */
|
178
|
+
* `ActionView::Base.annotate_rendered_view_with_filenames` annotates HTML output with template file names.
|
322
179
|
|
323
|
-
*
|
180
|
+
*Joel Hawksley*, *Aaron Patterson*
|
324
181
|
|
325
|
-
*
|
326
|
-
|
182
|
+
* `ActionView::Helpers::TranslationHelper#translate` returns nil when
|
183
|
+
passed `default: nil` without a translation matching `I18n#translate`.
|
327
184
|
|
328
|
-
|
185
|
+
*Stefan Wrobel*
|
329
186
|
|
330
|
-
|
187
|
+
* `OptimizedFileSystemResolver` prefers template details in order of locale,
|
188
|
+
formats, variants, handlers.
|
331
189
|
|
332
|
-
*
|
333
|
-
support automatic nonce generation for Content Security Policy.
|
334
|
-
Works the same way as `javascript_tag nonce: true` does.
|
190
|
+
*Iago Pimenta*
|
335
191
|
|
336
|
-
|
192
|
+
* Added `class_names` helper to create a CSS class value with conditional classes.
|
337
193
|
|
338
|
-
*
|
194
|
+
*Joel Hawksley*, *Aaron Patterson*
|
339
195
|
|
340
|
-
|
196
|
+
* Add support for conditional values to TagBuilder.
|
341
197
|
|
342
|
-
*
|
198
|
+
*Joel Hawksley*
|
343
199
|
|
344
|
-
|
345
|
-
Add a configuration option,
|
346
|
-
`action_view.finalize_compiled_template_methods`, and turn it off in
|
347
|
-
the test environment.
|
200
|
+
* `ActionView::Helpers::FormOptionsHelper#select` should mark option for `nil` as selected.
|
348
201
|
|
349
|
-
|
202
|
+
```ruby
|
203
|
+
@post = Post.new
|
204
|
+
@post.category = nil
|
350
205
|
|
351
|
-
|
206
|
+
# Before
|
207
|
+
select("post", "category", none: nil, programming: 1, economics: 2)
|
208
|
+
# =>
|
209
|
+
# <select name="post[category]" id="post_category">
|
210
|
+
# <option value="">none</option>
|
211
|
+
# <option value="1">programming</option>
|
212
|
+
# <option value="2">economics</option>
|
213
|
+
# </select>
|
352
214
|
|
353
|
-
|
215
|
+
# After
|
216
|
+
select("post", "category", none: nil, programming: 1, economics: 2)
|
217
|
+
# =>
|
218
|
+
# <select name="post[category]" id="post_category">
|
219
|
+
# <option selected="selected" value="">none</option>
|
220
|
+
# <option value="1">programming</option>
|
221
|
+
# <option value="2">economics</option>
|
222
|
+
# </select>
|
223
|
+
```
|
354
224
|
|
355
|
-
|
356
|
-
return (my_bootstrap_modal_confirm(message));
|
357
|
-
}
|
225
|
+
*bogdanvlviv*
|
358
226
|
|
359
|
-
|
227
|
+
* Log lines for partial renders and started template renders are now
|
228
|
+
emitted at the `DEBUG` level instead of `INFO`.
|
360
229
|
|
361
|
-
|
362
|
-
field.
|
230
|
+
Completed template renders are still logged at the `INFO` level.
|
363
231
|
|
364
|
-
|
232
|
+
*DHH*
|
365
233
|
|
366
|
-
|
367
|
-
:category,
|
368
|
-
["lifestyle", "programming", "spiritual"],
|
369
|
-
{ selected: "", disabled: "", prompt: "Choose one" },
|
370
|
-
{ required: true }
|
234
|
+
* ActionView::Helpers::SanitizeHelper: support rails-html-sanitizer 1.1.0.
|
371
235
|
|
372
|
-
|
236
|
+
*Juanito Fatas*
|
373
237
|
|
374
|
-
|
238
|
+
* Added `phone_to` helper method to create a link from mobile numbers.
|
375
239
|
|
376
|
-
|
377
|
-
<option disabled="disabled" selected="selected" value="">Choose one</option>
|
378
|
-
<option value="lifestyle">lifestyle</option>
|
379
|
-
<option value="programming">programming</option>
|
380
|
-
<option value="spiritual">spiritual</option></select>
|
240
|
+
*Pietro Moro*
|
381
241
|
|
382
|
-
|
242
|
+
* annotated_source_code returns an empty array so TemplateErrors without a
|
243
|
+
template in the backtrace are surfaced properly by DebugExceptions.
|
383
244
|
|
384
|
-
*
|
245
|
+
*Guilherme Mansur*, *Kasper Timm Hansen*
|
385
246
|
|
386
|
-
|
387
|
-
IE8 or lower becomes increasingly difficult so default to not enforcing
|
388
|
-
UTF-8 encoding as it's not relevant to other browsers.
|
247
|
+
* Add autoload for SyntaxErrorInTemplate so syntax errors are correctly raised by DebugExceptions.
|
389
248
|
|
390
|
-
*
|
249
|
+
*Guilherme Mansur*, *Gannon McGibbon*
|
391
250
|
|
392
|
-
*
|
251
|
+
* `RenderingHelper` supports rendering objects that `respond_to?` `:render_in`.
|
393
252
|
|
394
|
-
*
|
253
|
+
*Joel Hawksley*, *Natasha Umer*, *Aaron Patterson*, *Shawn Allen*, *Emily Plummer*, *Diana Mounter*, *John Hawthorn*, *Nathan Herald*, *Zaid Zawaideh*, *Zach Ahn*
|
395
254
|
|
396
|
-
*
|
255
|
+
* Fix `select_tag` so that it doesn't change `options` when `include_blank` is present.
|
397
256
|
|
398
|
-
*
|
257
|
+
*Younes SERRAJ*
|
399
258
|
|
400
259
|
|
401
|
-
Please check [
|
260
|
+
Please check [6-0-stable](https://github.com/rails/rails/blob/6-0-stable/actionview/CHANGELOG.md) for previous changes.
|
data/MIT-LICENSE
CHANGED
data/README.rdoc
CHANGED
@@ -15,7 +15,7 @@ The latest version of Action View can be installed with RubyGems:
|
|
15
15
|
|
16
16
|
Source code can be downloaded as part of the Rails project on GitHub:
|
17
17
|
|
18
|
-
* https://github.com/rails/rails/tree/
|
18
|
+
* https://github.com/rails/rails/tree/master/actionview
|
19
19
|
|
20
20
|
|
21
21
|
== License
|