blob: 74a677968fd74746bf5d6c9a1d482de6aeb54f66 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
|
* `translate` should accept nils as members of the `:default`
parameter without raising a translation missing error. Fixes a
regression introduced 362557e.
Fixes #19419
*Justin Coyne*
* `number_to_percentage` does not crash with `Float::NAN` or `Float::INFINITY`
as input when `precision: 0` is used.
Fixes #19227.
*Yves Senn*
* Fixed the translation helper method to accept different default values types
besides String.
*Ulisses Almeida*
* Collection rendering automatically caches and fetches multiple partials.
Collections rendered as:
```ruby
<%= render @notifications %>
<%= render partial: 'notifications/notification', collection: @notifications, as: :notification %>
```
will now read several partials from cache at once, if the template starts with a cache call:
```ruby
# notifications/_notification.html.erb
<% cache notification do %>
<%# ... %>
<% end %>
```
*Kasper Timm Hansen*
* Fixed a dependency tracker bug that caused template dependencies not
count layouts as dependencies for partials.
*Juho Leinonen*
* Extracted `ActionView::Helpers::RecordTagHelper` to external gem
(`record_tag_helper`) and added removal notices.
*Todd Bealmear*
* Allow to pass a string value to `size` option in `image_tag` and `video_tag`.
This makes the behavior more consistent with `width` or `height` options.
*Mehdi Lahmam*
* Partial template name does no more have to be a valid Ruby identifier.
There used to be a naming rule that the partial name should start with
underscore, and should be followed by any combination of letters, numbers
and underscores.
But now we can give our partials any name starting with underscore, such as
_🍔.html.erb.
*Akira Matsuda*
* Change the default template handler from `ERB` to `Raw`.
Files without a template handler in their extension will be rendered using the raw
handler instead of ERB.
*Rafael Mendonça França*
* Remove deprecated `AbstractController::Base::parent_prefixes`.
*Rafael Mendonça França*
* Default translations that have a lower precedence than a html safe default,
but are not themselves safe, should not be marked as html_safe.
*Justin Coyne*
* Make possible to use blocks with short version of `render "partial"` helper.
*Nikolay Shebanov*
* Add a `hidden_field` on the `file_field` to avoid raise a error when the only
input on the form is the `file_field`.
*Mauro George*
* Add an explicit error message, in `ActionView::PartialRenderer` for partial
`rendering`, when the value of option `as` has invalid characters.
*Angelo Capilleri*
* Allow entries without a link tag in AtomFeedHelper.
*Daniel Gomez de Souza*
Please check [4-2-stable](https://github.com/rails/rails/blob/4-2-stable/actionview/CHANGELOG.md) for previous changes.
|