2015-03-06 03:12:27 -05:00
|
|
|
* `number_to_percentage` does not crash with `Float::NAN` or `Float::INFINITY`
|
|
|
|
as input when `precision: 0` is used.
|
|
|
|
|
|
|
|
Fixes #19227.
|
|
|
|
|
|
|
|
*Yves Senn*
|
|
|
|
|
2015-02-26 16:18:58 -05:00
|
|
|
* Fixed the translation helper method to accept different default values types
|
|
|
|
besides String.
|
|
|
|
|
|
|
|
*Ulisses Almeida*
|
|
|
|
|
2015-02-26 11:23:22 -05:00
|
|
|
* 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*
|
|
|
|
|
2015-02-24 09:08:05 -05:00
|
|
|
* Fixed a dependency tracker bug that caused template dependencies not
|
|
|
|
count layouts as dependencies for partials.
|
|
|
|
|
|
|
|
*Juho Leinonen*
|
|
|
|
|
2015-01-08 16:01:16 -05:00
|
|
|
* Extracted `ActionView::Helpers::RecordTagHelper` to external gem
|
|
|
|
(`record_tag_helper`) and added removal notices.
|
|
|
|
|
|
|
|
*Todd Bealmear*
|
|
|
|
|
2015-02-16 07:19:40 -05:00
|
|
|
* Allow to pass a string value to `size` option in `image_tag` and `video_tag`.
|
2015-02-15 15:38:27 -05:00
|
|
|
|
|
|
|
This makes the behavior more consistent with `width` or `height` options.
|
|
|
|
|
|
|
|
*Mehdi Lahmam*
|
|
|
|
|
2015-02-05 10:18:05 -05:00
|
|
|
* 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*
|
|
|
|
|
2015-01-03 16:00:27 -05:00
|
|
|
* Change the default template handler from `ERB` to `Raw`.
|
|
|
|
|
2015-01-14 06:04:09 -05:00
|
|
|
Files without a template handler in their extension will be rendered using the raw
|
2015-01-03 16:00:27 -05:00
|
|
|
handler instead of ERB.
|
|
|
|
|
|
|
|
*Rafael Mendonça França*
|
|
|
|
|
2015-01-03 15:46:09 -05:00
|
|
|
* Remove deprecated `AbstractController::Base::parent_prefixes`.
|
|
|
|
|
|
|
|
*Rafael Mendonça França*
|
|
|
|
|
2015-01-03 10:36:33 -05:00
|
|
|
* Default translations that have a lower precedence than a html safe default,
|
2015-01-02 18:07:01 -05:00
|
|
|
but are not themselves safe, should not be marked as html_safe.
|
|
|
|
|
|
|
|
*Justin Coyne*
|
|
|
|
|
2014-12-08 19:13:40 -05:00
|
|
|
* Make possible to use blocks with short version of `render "partial"` helper.
|
|
|
|
|
|
|
|
*Nikolay Shebanov*
|
|
|
|
|
2014-12-08 17:22:36 -05:00
|
|
|
* 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*
|
|
|
|
|
2014-12-31 10:53:36 -05:00
|
|
|
* Add an explicit error message, in `ActionView::PartialRenderer` for partial
|
|
|
|
`rendering`, when the value of option `as` has invalid characters.
|
2013-06-25 06:27:50 -04:00
|
|
|
|
|
|
|
*Angelo Capilleri*
|
|
|
|
|
2015-01-10 11:06:53 -05:00
|
|
|
* Allow entries without a link tag in AtomFeedHelper.
|
|
|
|
|
|
|
|
*Daniel Gomez de Souza*
|
2014-12-08 17:22:36 -05:00
|
|
|
|
2014-11-28 12:00:06 -05:00
|
|
|
Please check [4-2-stable](https://github.com/rails/rails/blob/4-2-stable/actionview/CHANGELOG.md) for previous changes.
|