actionview 5.0.7.2 → 5.1.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.
- checksums.yaml +5 -5
- data/CHANGELOG.md +92 -384
- data/MIT-LICENSE +1 -1
- data/README.rdoc +1 -1
- data/lib/action_view.rb +5 -5
- data/lib/action_view/base.rb +19 -19
- data/lib/action_view/buffers.rb +1 -1
- data/lib/action_view/context.rb +1 -1
- data/lib/action_view/dependency_tracker.rb +4 -5
- data/lib/action_view/digestor.rb +6 -7
- data/lib/action_view/flows.rb +5 -6
- data/lib/action_view/gem_version.rb +3 -3
- data/lib/action_view/helpers.rb +1 -1
- data/lib/action_view/helpers/active_model_helper.rb +8 -8
- data/lib/action_view/helpers/asset_tag_helper.rb +62 -36
- data/lib/action_view/helpers/asset_url_helper.rb +111 -49
- data/lib/action_view/helpers/atom_feed_helper.rb +12 -13
- data/lib/action_view/helpers/cache_helper.rb +34 -20
- data/lib/action_view/helpers/capture_helper.rb +2 -2
- data/lib/action_view/helpers/controller_helper.rb +3 -11
- data/lib/action_view/helpers/csrf_helper.rb +3 -3
- data/lib/action_view/helpers/date_helper.rb +109 -107
- data/lib/action_view/helpers/debug_helper.rb +2 -3
- data/lib/action_view/helpers/form_helper.rb +406 -31
- data/lib/action_view/helpers/form_options_helper.rb +12 -12
- data/lib/action_view/helpers/form_tag_helper.rb +19 -18
- data/lib/action_view/helpers/javascript_helper.rb +6 -6
- data/lib/action_view/helpers/number_helper.rb +48 -46
- data/lib/action_view/helpers/output_safety_helper.rb +8 -8
- data/lib/action_view/helpers/rendering_helper.rb +2 -2
- data/lib/action_view/helpers/sanitize_helper.rb +6 -8
- data/lib/action_view/helpers/tag_helper.rb +194 -77
- data/lib/action_view/helpers/tags/base.rb +121 -102
- data/lib/action_view/helpers/tags/check_box.rb +17 -17
- data/lib/action_view/helpers/tags/collection_check_boxes.rb +8 -8
- data/lib/action_view/helpers/tags/collection_helpers.rb +60 -60
- data/lib/action_view/helpers/tags/collection_radio_buttons.rb +2 -2
- data/lib/action_view/helpers/tags/collection_select.rb +2 -2
- data/lib/action_view/helpers/tags/date_select.rb +36 -36
- data/lib/action_view/helpers/tags/grouped_collection_select.rb +2 -2
- data/lib/action_view/helpers/tags/label.rb +4 -0
- data/lib/action_view/helpers/tags/password_field.rb +1 -1
- data/lib/action_view/helpers/tags/radio_button.rb +4 -4
- data/lib/action_view/helpers/tags/select.rb +9 -9
- data/lib/action_view/helpers/tags/text_area.rb +1 -1
- data/lib/action_view/helpers/tags/text_field.rb +5 -5
- data/lib/action_view/helpers/tags/translator.rb +14 -12
- data/lib/action_view/helpers/text_helper.rb +20 -19
- data/lib/action_view/helpers/translation_helper.rb +6 -6
- data/lib/action_view/helpers/url_helper.rb +42 -38
- data/lib/action_view/layouts.rb +51 -47
- data/lib/action_view/log_subscriber.rb +24 -9
- data/lib/action_view/lookup_context.rb +19 -25
- data/lib/action_view/path_set.rb +19 -19
- data/lib/action_view/railtie.rb +3 -3
- data/lib/action_view/record_identifier.rb +6 -6
- data/lib/action_view/renderer/abstract_renderer.rb +17 -17
- data/lib/action_view/renderer/partial_renderer.rb +188 -187
- data/lib/action_view/renderer/partial_renderer/collection_caching.rb +7 -1
- data/lib/action_view/renderer/streaming_template_renderer.rb +45 -47
- data/lib/action_view/renderer/template_renderer.rb +64 -66
- data/lib/action_view/rendering.rb +4 -5
- data/lib/action_view/routing_url_for.rb +9 -13
- data/lib/action_view/tasks/cache_digests.rake +7 -7
- data/lib/action_view/template.rb +26 -27
- data/lib/action_view/template/error.rb +5 -15
- data/lib/action_view/template/handlers.rb +4 -4
- data/lib/action_view/template/handlers/builder.rb +7 -7
- data/lib/action_view/template/handlers/erb.rb +9 -76
- data/lib/action_view/template/handlers/erb/deprecated_erubis.rb +9 -0
- data/lib/action_view/template/handlers/erb/erubi.rb +81 -0
- data/lib/action_view/template/handlers/erb/erubis.rb +81 -0
- data/lib/action_view/template/html.rb +2 -4
- data/lib/action_view/template/resolver.rb +107 -90
- data/lib/action_view/template/text.rb +5 -8
- data/lib/action_view/template/types.rb +1 -1
- data/lib/action_view/test_case.rb +20 -21
- data/lib/action_view/testing/resolvers.rb +29 -30
- data/lib/action_view/version.rb +1 -1
- data/lib/action_view/view_paths.rb +20 -8
- data/lib/assets/compiled/rails-ujs.js +648 -0
- metadata +19 -14
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
2
|
+
SHA1:
|
3
|
+
metadata.gz: 880105b5ed594d2cc79d3a304d171cfb83a0dc0f
|
4
|
+
data.tar.gz: 0ca69dafd2c2eb49ecc9e4de449185c9f10a53a3
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 2ac225c63c185e593d78cabbd1a98de42614fae3ee5dad779310fa3d30d6c2821ba6609c75169dfd1bcdbddde1a3db2465d15610c17d5cb3abb94c35d46f1c6b
|
7
|
+
data.tar.gz: 643953d2d815c89802a813162797b67da2d1150b2cfe77a14870fa7693f1e95f31066f9ddccfeb238e447b805b932b75865d27dd2a4b275080ee6a9b23d04095
|
data/CHANGELOG.md
CHANGED
@@ -1,54 +1,18 @@
|
|
1
|
-
## Rails 5.0.
|
1
|
+
## Rails 5.1.0.beta1 (February 23, 2017) ##
|
2
2
|
|
3
|
-
*
|
3
|
+
* Change the ERB handler from Erubis to Erubi.
|
4
4
|
|
5
|
+
Erubi is an Erubis fork that's svelte, simple, and currently maintained.
|
6
|
+
Plus it supports `--enable-frozen-string-literal` in Ruby 2.3+.
|
5
7
|
|
6
|
-
|
8
|
+
Compatibility: Drops support for `<%===` tags for debug output.
|
9
|
+
These were an unused, undocumented side effect of the Erubis
|
10
|
+
implementation.
|
7
11
|
|
8
|
-
|
12
|
+
Deprecation: The Erubis handler will be removed in Rails 5.2, for the
|
13
|
+
handful of folks using it directly.
|
9
14
|
|
10
|
-
|
11
|
-
## Rails 5.0.7 (March 29, 2018) ##
|
12
|
-
|
13
|
-
* No changes.
|
14
|
-
|
15
|
-
|
16
|
-
## Rails 5.0.6 (September 07, 2017) ##
|
17
|
-
|
18
|
-
* No changes.
|
19
|
-
|
20
|
-
|
21
|
-
## Rails 5.0.6.rc1 (August 24, 2017) ##
|
22
|
-
|
23
|
-
* No changes.
|
24
|
-
|
25
|
-
|
26
|
-
## Rails 5.0.5 (July 31, 2017) ##
|
27
|
-
|
28
|
-
* No changes.
|
29
|
-
|
30
|
-
|
31
|
-
## Rails 5.0.5.rc2 (July 25, 2017) ##
|
32
|
-
|
33
|
-
* No changes.
|
34
|
-
|
35
|
-
|
36
|
-
## Rails 5.0.5.rc1 (July 19, 2017) ##
|
37
|
-
|
38
|
-
* No changes.
|
39
|
-
|
40
|
-
|
41
|
-
## Rails 5.0.4 (June 19, 2017) ##
|
42
|
-
|
43
|
-
* No changes.
|
44
|
-
|
45
|
-
|
46
|
-
## Rails 5.0.3 (May 12, 2017) ##
|
47
|
-
|
48
|
-
* No changes.
|
49
|
-
|
50
|
-
|
51
|
-
## Rails 5.0.2 (March 01, 2017) ##
|
15
|
+
*Jeremy Evans*
|
52
16
|
|
53
17
|
* Allow render locals to be assigned to instance variables in a view.
|
54
18
|
|
@@ -56,39 +20,64 @@
|
|
56
20
|
|
57
21
|
*Andrew White*
|
58
22
|
|
23
|
+
* Add `check_parameters` option to `current_page?` which makes it more strict.
|
24
|
+
|
25
|
+
*Maksym Pugach*
|
26
|
+
|
59
27
|
* Return correct object name in form helper method after `fields_for`.
|
60
28
|
|
61
29
|
Fixes #26931.
|
62
30
|
|
63
31
|
*Yuji Yaginuma*
|
64
32
|
|
33
|
+
* Use `ActionView::Resolver.caching?` (`config.action_view.cache_template_loading`)
|
34
|
+
to enable template recompilation.
|
35
|
+
|
36
|
+
Before it was enabled by `consider_all_requests_local`, which caused
|
37
|
+
recompilation in tests.
|
65
38
|
|
66
|
-
|
39
|
+
*Max Melentiev*
|
67
40
|
|
68
|
-
*
|
41
|
+
* Add `form_with` to unify `form_tag` and `form_for` usage.
|
69
42
|
|
43
|
+
Used like `form_tag` (where just the open tag is output):
|
70
44
|
|
71
|
-
|
45
|
+
```erb
|
46
|
+
<%= form_with scope: :post, url: super_special_posts_path %>
|
47
|
+
```
|
72
48
|
|
73
|
-
|
49
|
+
Used like `form_for`:
|
74
50
|
|
75
|
-
|
51
|
+
```erb
|
52
|
+
<%= form_with model: @post do |form| %>
|
53
|
+
<%= form.text_field :title %>
|
54
|
+
<% end %>
|
55
|
+
```
|
76
56
|
|
77
|
-
*
|
57
|
+
*Kasper Timm Hansen*, *Marek Kirejczyk*
|
78
58
|
|
59
|
+
* Add `fields` form helper method.
|
79
60
|
|
80
|
-
|
61
|
+
```erb
|
62
|
+
<%= fields :comment, model: @comment do |fields| %>
|
63
|
+
<%= fields.text_field :title %>
|
64
|
+
<% end %>
|
65
|
+
```
|
66
|
+
|
67
|
+
Can also be used within form helpers such as `form_with`.
|
68
|
+
|
69
|
+
*Kasper Timm Hansen*
|
81
70
|
|
82
|
-
*
|
71
|
+
* Removed deprecated `#original_exception` in `ActionView::Template::Error`.
|
83
72
|
|
84
|
-
*
|
73
|
+
*Rafael Mendonça França*
|
85
74
|
|
86
|
-
* Render now accepts any keys for locals, including reserved
|
75
|
+
* Render now accepts any keys for locals, including reserved keywords.
|
87
76
|
|
88
77
|
Only locals with valid variable names get set directly. Others
|
89
|
-
will still be available in local_assigns
|
78
|
+
will still be available in `local_assigns`.
|
90
79
|
|
91
|
-
Example of render with reserved
|
80
|
+
Example of render with reserved keywords:
|
92
81
|
|
93
82
|
```erb
|
94
83
|
<%= render "example", class: "text-center", message: "Hello world!" %>
|
@@ -101,26 +90,29 @@
|
|
101
90
|
|
102
91
|
*Peter Schilling*, *Matthew Draper*
|
103
92
|
|
104
|
-
*
|
105
|
-
implement `to_a`.
|
93
|
+
* Show cache hits and misses when rendering partials.
|
106
94
|
|
107
|
-
|
108
|
-
|
109
|
-
collection. Instances of `Enumerator` or `Enumerable` are valid
|
110
|
-
collections, but they do not implement `#to_ary`. By changing this to
|
111
|
-
`#to_a`, they will now be extracted and rendered as expected.
|
112
|
-
|
113
|
-
*Steven Harman*
|
95
|
+
Partials using the `cache` helper will show whether a render hit or missed
|
96
|
+
the cache:
|
114
97
|
|
115
|
-
|
116
|
-
|
98
|
+
```
|
99
|
+
Rendered messages/_message.html.erb in 1.2 ms [cache hit]
|
100
|
+
Rendered recordings/threads/_thread.html.erb in 1.5 ms [cache miss]
|
101
|
+
```
|
117
102
|
|
118
|
-
|
103
|
+
This removes the need for the old fragment cache logging:
|
119
104
|
|
120
|
-
|
105
|
+
```
|
106
|
+
Read fragment views/v1/2914079/v1/2914079/recordings/70182313-20160225015037000000/d0bdf2974e1ef6d31685c3b392ad0b74 (0.6ms)
|
107
|
+
Rendered messages/_message.html.erb in 1.2 ms [cache hit]
|
108
|
+
Write fragment views/v1/2914079/v1/2914079/recordings/70182313-20160225015037000000/3b4e249ac9d168c617e32e84b99218b5 (1.1ms)
|
109
|
+
Rendered recordings/threads/_thread.html.erb in 1.5 ms [cache miss]
|
110
|
+
```
|
121
111
|
|
112
|
+
Though that full output can be reenabled with
|
113
|
+
`config.action_controller.enable_fragment_cache_logging = true`.
|
122
114
|
|
123
|
-
|
115
|
+
*Stan Lo*
|
124
116
|
|
125
117
|
* Changed partial rendering with a collection to allow collections which
|
126
118
|
implement `to_a`.
|
@@ -133,10 +125,35 @@
|
|
133
125
|
|
134
126
|
*Steven Harman*
|
135
127
|
|
128
|
+
* New syntax for tag helpers. Avoid positional parameters and support HTML5 by default.
|
129
|
+
Example usage of tag helpers before:
|
130
|
+
|
131
|
+
```ruby
|
132
|
+
tag(:br, nil, true)
|
133
|
+
content_tag(:div, content_tag(:p, "Hello world!"), class: "strong")
|
134
|
+
|
135
|
+
<%= content_tag :div, class: "strong" do -%>
|
136
|
+
Hello world!
|
137
|
+
<% end -%>
|
138
|
+
```
|
139
|
+
|
140
|
+
Example usage of tag helpers after:
|
141
|
+
|
142
|
+
```ruby
|
143
|
+
tag.br
|
144
|
+
tag.div tag.p("Hello world!"), class: "strong"
|
145
|
+
|
146
|
+
<%= tag.div class: "strong" do %>
|
147
|
+
Hello world!
|
148
|
+
<% end %>
|
149
|
+
```
|
150
|
+
|
151
|
+
*Marek Kirejczyk*, *Kasper Timm Hansen*
|
152
|
+
|
136
153
|
* Change `datetime_field` and `datetime_field_tag` to generate `datetime-local` fields.
|
137
154
|
|
138
155
|
As a new specification of the HTML 5 the text field type `datetime` will no longer exist
|
139
|
-
and it is
|
156
|
+
and it is recommended to use `datetime-local`.
|
140
157
|
Ref: https://html.spec.whatwg.org/multipage/forms.html#local-date-and-time-state-(type=datetime-local)
|
141
158
|
|
142
159
|
*Herminio Torres*
|
@@ -153,7 +170,7 @@
|
|
153
170
|
*Eileen M. Uchitelle*
|
154
171
|
|
155
172
|
* `select_tag`'s `include_blank` option for generation for blank option tag, now adds an empty space label,
|
156
|
-
when the value as well as content for option tag are empty, so that we
|
173
|
+
when the value as well as content for option tag are empty, so that we conform with html specification.
|
157
174
|
Ref: https://www.w3.org/TR/html5/forms.html#the-option-element.
|
158
175
|
|
159
176
|
Generation of option before:
|
@@ -168,315 +185,6 @@
|
|
168
185
|
<option value="" label=" "></option>
|
169
186
|
```
|
170
187
|
|
171
|
-
*Vipul A M *
|
172
|
-
|
173
|
-
* `date_select` helper `:with_css_classes` option now accepts a hash of strings
|
174
|
-
for `:year`, `:month`, `:day`, `:hour`, `:minute`, `:second` that will extend
|
175
|
-
the select type with the given css class value.
|
176
|
-
|
177
|
-
```erb
|
178
|
-
<%= f.date_select :birthday, with_css_classes: { month: "my-month", year: "my-year" } %>
|
179
|
-
```
|
180
|
-
|
181
|
-
```html
|
182
|
-
<select id="user_birthday_3i" name="user[birthday(3i)]">…</select>
|
183
|
-
<select id="user_birthday_2i" name="user[birthday(2i)]" class="my-month">…</select>
|
184
|
-
<select id="user_birthday_1i" name="user[birthday(1i)]" class="my-year">…</select>
|
185
|
-
```
|
186
|
-
|
187
|
-
*Matthias Neumayr*
|
188
|
-
|
189
|
-
* Add `to_sentence` helper that is a HTML-safe aware version of `Array#to_sentence`.
|
190
|
-
|
191
|
-
*Neil Matatall*
|
192
|
-
|
193
|
-
* Added log "Rendering ...", when starting to render a template to log that
|
194
|
-
we have started rendering something. This helps to easily identify the origin
|
195
|
-
of queries in the log whether they came from controller or views.
|
196
|
-
|
197
|
-
*Vipul A M and Prem Sichanugrist*
|
198
|
-
|
199
|
-
* Collection rendering can cache and fetch multiple partials at once.
|
200
|
-
|
201
|
-
Collections rendered as:
|
202
|
-
|
203
|
-
```ruby
|
204
|
-
<%= render partial: 'notifications/notification', collection: @notifications, as: :notification, cached: true %>
|
205
|
-
```
|
206
|
-
|
207
|
-
will read several partials from cache at once. The templates in the collection
|
208
|
-
that haven't been cached already will automatically be written to cache. Works
|
209
|
-
great alongside individual template fragment caching. For instance if the
|
210
|
-
template the collection renders is cached like:
|
211
|
-
|
212
|
-
```ruby
|
213
|
-
# notifications/_notification.html.erb
|
214
|
-
<% cache notification do %>
|
215
|
-
<%# ... %>
|
216
|
-
<% end %>
|
217
|
-
```
|
218
|
-
|
219
|
-
Then any collection renders shares that cache when attempting to read multiple
|
220
|
-
ones at once.
|
221
|
-
|
222
|
-
*Kasper Timm Hansen*
|
223
|
-
|
224
|
-
* Add support for nested hashes/arrays to `:params` option of `button_to` helper.
|
225
|
-
|
226
|
-
*James Coleman*
|
227
|
-
|
228
|
-
* Fix stripping the digest from the automatically generated img tag alt
|
229
|
-
attribute when assets are handled by Sprockets >=3.0.
|
230
|
-
|
231
|
-
*Bart de Water*
|
232
|
-
|
233
|
-
* Create a new `ActiveSupport::SafeBuffer` instance when `content_for` is flushed.
|
234
|
-
|
235
|
-
Fixes #19890.
|
236
|
-
|
237
|
-
*Yoong Kang Lim*
|
238
|
-
|
239
|
-
* Fix `collection_radio_buttons` hidden_field name and make it appear
|
240
|
-
before the actual input radio tags to make the real value override
|
241
|
-
the hidden when passed.
|
242
|
-
|
243
|
-
Fixes #22773.
|
244
|
-
|
245
|
-
*Santiago Pastorino*
|
246
|
-
|
247
|
-
* `ActionView::TestCase::Controller#params` returns an instance of
|
248
|
-
`ActionController::Parameters`.
|
249
|
-
|
250
|
-
*Justin Coyne*
|
251
|
-
|
252
|
-
* Fix regression in `submit_tag` when a symbol is used as label argument.
|
253
|
-
|
254
|
-
*Yuuji Yaginuma*
|
255
|
-
|
256
|
-
* `I18n.translate` helper will wrap the missing translation keys
|
257
|
-
in a <span> tag only if `debug_missing_translation` configuration
|
258
|
-
be true. Default value is `true`. For example in `application.rb`:
|
259
|
-
|
260
|
-
# in order to turn off missing key wrapping
|
261
|
-
config.action_view.debug_missing_translation = false
|
262
|
-
|
263
|
-
*Sameer Rahmani*
|
264
|
-
|
265
|
-
* Respect value of `:object` if `:object` is false when rendering.
|
266
|
-
|
267
|
-
Fixes #22260.
|
268
|
-
|
269
|
-
*Yuichiro Kaneko*
|
270
|
-
|
271
|
-
* Generate `week_field` input values using a 1-based index and not a 0-based index
|
272
|
-
as per the W3 spec: http://www.w3.org/TR/html-markup/datatypes.html#form.data.week
|
273
|
-
|
274
|
-
*Christoph Geschwind*
|
275
|
-
|
276
|
-
* Allow `host` option in `javascript_include_tag` and `stylesheet_link_tag` helpers
|
277
|
-
|
278
|
-
*Grzegorz Witek*
|
279
|
-
|
280
|
-
* Restrict `url_for :back` to valid, non-JavaScript URLs. GH#14444
|
281
|
-
|
282
|
-
*Damien Burke*
|
283
|
-
|
284
|
-
* Allow `date_select` helper selected option to accept hash like the default options.
|
285
|
-
|
286
|
-
*Lecky Lao*
|
287
|
-
|
288
|
-
* Collection input propagates input's `id` to the label's `for` attribute when
|
289
|
-
using html options as the last element of collection.
|
290
|
-
|
291
|
-
*Vasiliy Ermolovich*
|
292
|
-
|
293
|
-
* Add a `hidden_field` on the `collection_radio_buttons` to avoid raising an error
|
294
|
-
when the only input on the form is the `collection_radio_buttons`.
|
295
|
-
|
296
|
-
*Mauro George*
|
297
|
-
|
298
|
-
* `url_for` does not modify its arguments when generating polymorphic URLs.
|
299
|
-
|
300
|
-
*Bernerd Schaefer*
|
301
|
-
|
302
|
-
* `number_to_currency` and `number_with_delimiter` now accept a custom `delimiter_pattern` option
|
303
|
-
to handle placement of delimiter, to support currency formats like INR.
|
304
|
-
|
305
|
-
Example:
|
306
|
-
|
307
|
-
number_to_currency(1230000, delimiter_pattern: /(\d+?)(?=(\d\d)+(\d)(?!\d))/, unit: '₹', format: "%u %n")
|
308
|
-
# => '₹ 12,30,000.00'
|
309
|
-
|
310
188
|
*Vipul A M*
|
311
189
|
|
312
|
-
|
313
|
-
button on submit to prevent double submits.
|
314
|
-
|
315
|
-
*Justin Schiff*
|
316
|
-
|
317
|
-
* Add a break_sequence option to word_wrap so you can specify a custom break.
|
318
|
-
|
319
|
-
*Mauricio Gomez*
|
320
|
-
|
321
|
-
* Add wildcard matching to explicit dependencies.
|
322
|
-
|
323
|
-
Turns:
|
324
|
-
|
325
|
-
```erb
|
326
|
-
<% # Template Dependency: recordings/threads/events/subscribers_changed %>
|
327
|
-
<% # Template Dependency: recordings/threads/events/completed %>
|
328
|
-
<% # Template Dependency: recordings/threads/events/uncompleted %>
|
329
|
-
```
|
330
|
-
|
331
|
-
Into:
|
332
|
-
|
333
|
-
```erb
|
334
|
-
<% # Template Dependency: recordings/threads/events/* %>
|
335
|
-
```
|
336
|
-
|
337
|
-
*Kasper Timm Hansen*
|
338
|
-
|
339
|
-
* Allow defining explicit collection caching using a `# Template Collection: ...`
|
340
|
-
directive inside templates.
|
341
|
-
|
342
|
-
*Dov Murik*
|
343
|
-
|
344
|
-
* Asset helpers raise `ArgumentError` when `nil` is passed as a source.
|
345
|
-
|
346
|
-
*Anton Kolomiychuk*
|
347
|
-
|
348
|
-
* Always attach the template digest to the cache key for collection caching
|
349
|
-
even when `virtual_path` is not available from the view context.
|
350
|
-
Which could happen if the rendering was done directly in the controller
|
351
|
-
and not in a template.
|
352
|
-
|
353
|
-
Fixes #20535.
|
354
|
-
|
355
|
-
*Roque Pinel*
|
356
|
-
|
357
|
-
* Improve detection of partial templates eligible for collection caching,
|
358
|
-
now allowing multi-line comments at the beginning of the template file.
|
359
|
-
|
360
|
-
*Dov Murik*
|
361
|
-
|
362
|
-
* Raise an `ArgumentError` when a false value for `include_blank` is passed to a
|
363
|
-
required select field (to comply with the HTML5 spec).
|
364
|
-
|
365
|
-
*Grey Baker*
|
366
|
-
|
367
|
-
* Do not put partial name to `local_assigns` when rendering without
|
368
|
-
an object or a collection.
|
369
|
-
|
370
|
-
*Henrik Nygren*
|
371
|
-
|
372
|
-
* Remove `:rescue_format` option for `translate` helper since it's no longer
|
373
|
-
supported by I18n.
|
374
|
-
|
375
|
-
*Bernard Potocki*
|
376
|
-
|
377
|
-
* `translate` should handle `raise` flag correctly in case of both main and default
|
378
|
-
translation is missing.
|
379
|
-
|
380
|
-
Fixes #19967.
|
381
|
-
|
382
|
-
*Bernard Potocki*
|
383
|
-
|
384
|
-
* Load the `default_form_builder` from the controller on initialization, which overrides
|
385
|
-
the global config if it is present.
|
386
|
-
|
387
|
-
*Kevin McPhillips*
|
388
|
-
|
389
|
-
* Accept lambda as `child_index` option in `fields_for` method.
|
390
|
-
|
391
|
-
*Karol Galanciak*
|
392
|
-
|
393
|
-
* `translate` allows `default: [[]]` again for a default value of `[]`.
|
394
|
-
|
395
|
-
Fixes #19640.
|
396
|
-
|
397
|
-
*Adam Prescott*
|
398
|
-
|
399
|
-
* `translate` should accept nils as members of the `:default`
|
400
|
-
parameter without raising a translation missing error.
|
401
|
-
|
402
|
-
Fixes #19419.
|
403
|
-
|
404
|
-
*Justin Coyne*
|
405
|
-
|
406
|
-
* `number_to_percentage` does not crash with `Float::NAN` or `Float::INFINITY`
|
407
|
-
as input when `precision: 0` is used.
|
408
|
-
|
409
|
-
Fixes #19227.
|
410
|
-
|
411
|
-
*Yves Senn*
|
412
|
-
|
413
|
-
* Fixed the translation helper method to accept different default values types
|
414
|
-
besides String.
|
415
|
-
|
416
|
-
*Ulisses Almeida*
|
417
|
-
|
418
|
-
* Fixed a dependency tracker bug that caused template dependencies not
|
419
|
-
count layouts as dependencies for partials.
|
420
|
-
|
421
|
-
*Juho Leinonen*
|
422
|
-
|
423
|
-
* Extracted `ActionView::Helpers::RecordTagHelper` to external gem
|
424
|
-
(`record_tag_helper`) and added removal notices.
|
425
|
-
|
426
|
-
*Todd Bealmear*
|
427
|
-
|
428
|
-
* Allow to pass an integer value to `size` option in `image_tag` and `video_tag`.
|
429
|
-
|
430
|
-
This makes the behavior more consistent with `width` or `height` options.
|
431
|
-
|
432
|
-
*Mehdi Lahmam*
|
433
|
-
|
434
|
-
* Partial template name does no more have to be a valid Ruby identifier.
|
435
|
-
|
436
|
-
There used to be a naming rule that the partial name should start with
|
437
|
-
underscore, and should be followed by any combination of letters, numbers
|
438
|
-
and underscores.
|
439
|
-
But now we can give our partials any name starting with underscore, such as
|
440
|
-
_🍔.html.erb.
|
441
|
-
|
442
|
-
*Akira Matsuda*
|
443
|
-
|
444
|
-
* Change the default template handler from `ERB` to `Raw`.
|
445
|
-
|
446
|
-
Files without a template handler in their extension will be rendered using the raw
|
447
|
-
handler instead of ERB.
|
448
|
-
|
449
|
-
*Rafael Mendonça França*
|
450
|
-
|
451
|
-
* Remove deprecated `AbstractController::Base::parent_prefixes`.
|
452
|
-
|
453
|
-
*Rafael Mendonça França*
|
454
|
-
|
455
|
-
* Default translations that have a lower precedence than a html safe default,
|
456
|
-
but are not themselves safe, should not be marked as html_safe.
|
457
|
-
|
458
|
-
*Justin Coyne*
|
459
|
-
|
460
|
-
* Make possible to use blocks with short version of `render "partial"` helper.
|
461
|
-
|
462
|
-
*Nikolay Shebanov*
|
463
|
-
|
464
|
-
* Add a `hidden_field` on the `file_field` to avoid raising an error when the only
|
465
|
-
input on the form is the `file_field`.
|
466
|
-
|
467
|
-
*Mauro George*
|
468
|
-
|
469
|
-
* Add support for Reply-To field in `mail_to` helper.
|
470
|
-
|
471
|
-
*Mark Dodwell*
|
472
|
-
|
473
|
-
* Add an explicit error message, in `ActionView::PartialRenderer` for partial
|
474
|
-
`rendering`, when the value of option `as` has invalid characters.
|
475
|
-
|
476
|
-
*Angelo Capilleri*
|
477
|
-
|
478
|
-
* Allow entries without a link tag in `AtomFeedHelper`.
|
479
|
-
|
480
|
-
*Daniel Gomez de Souza*
|
481
|
-
|
482
|
-
Please check [4-2-stable](https://github.com/rails/rails/blob/4-2-stable/actionview/CHANGELOG.md) for previous changes.
|
190
|
+
Please check [5-0-stable](https://github.com/rails/rails/blob/5-0-stable/actionview/CHANGELOG.md) for previous changes.
|