2014-07-25 19:35:16 -04:00
|
|
|
* Fix that render layout: 'messages/layout' should also be added to the dependency tracker tree.
|
|
|
|
|
|
|
|
*DHH*
|
|
|
|
|
2014-07-16 13:40:50 -04:00
|
|
|
* Add `PartialIteration` object used when rendering collections.
|
|
|
|
|
|
|
|
The iteration object is available as the local variable
|
|
|
|
`#{template_name}_iteration` when rendering partials with collections.
|
|
|
|
|
|
|
|
It gives access to the `size` of the collection being iterated over,
|
|
|
|
the current `index` and two convenience methods `first?` and `last?`.
|
|
|
|
|
|
|
|
*Joel Junström*, *Lucas Uyezu*
|
|
|
|
|
2014-07-12 12:00:09 -04:00
|
|
|
* Return an absolute instead of relative path from an asset url in the case
|
|
|
|
of the `asset_host` proc returning nil
|
|
|
|
|
|
|
|
*Jolyon Pawlyn*
|
|
|
|
|
2014-07-02 18:50:47 -04:00
|
|
|
* Fix `html_escape_once` to properly handle hex escape sequences (e.g. ᨫ)
|
|
|
|
|
|
|
|
*John F. Douthat*
|
|
|
|
|
2014-06-30 16:42:56 -04:00
|
|
|
* Added String support for min and max properties for date field helpers.
|
|
|
|
|
|
|
|
*Todd Bealmear*
|
|
|
|
|
2014-06-19 13:58:36 -04:00
|
|
|
* The `highlight` helper now accepts a block to be used instead of the `highlighter`
|
|
|
|
option.
|
|
|
|
|
|
|
|
*Lucas Mazza*
|
|
|
|
|
|
|
|
* The `except` and `highlight` helpers now accept regular expressions.
|
|
|
|
|
|
|
|
*Jan Szumiec*
|
|
|
|
|
2014-06-12 19:15:23 -04:00
|
|
|
* Flatten the array parameter in `safe_join`, so it behaves consistently with
|
|
|
|
`Array#join`.
|
|
|
|
|
|
|
|
*Paul Grayson*
|
|
|
|
|
|
|
|
* Honor `html_safe` on array elements in tag values, as we do for plain string
|
|
|
|
values.
|
|
|
|
|
|
|
|
*Paul Grayson*
|
|
|
|
|
2014-06-09 10:45:46 -04:00
|
|
|
* Add `ActionView::Template::Handler.unregister_template_handler`.
|
2014-06-12 08:06:59 -04:00
|
|
|
|
2014-06-09 10:45:46 -04:00
|
|
|
It performs the opposite of `ActionView::Template::Handler.register_template_handler`.
|
2014-06-12 08:06:59 -04:00
|
|
|
|
2014-06-09 10:45:46 -04:00
|
|
|
*Zuhao Wan*
|
|
|
|
|
2014-06-10 07:34:14 -04:00
|
|
|
* Bring `cache_digest` rake tasks up-to-date with the latest API changes
|
|
|
|
|
|
|
|
*Jiri Pospisil*
|
|
|
|
|
2014-05-16 12:31:06 -04:00
|
|
|
* Allow custom `:host` option to be passed to `asset_url` helper that
|
|
|
|
overwrites `config.action_controller.asset_host` for particular asset.
|
|
|
|
|
|
|
|
*Hubert Łępicki*
|
|
|
|
|
2014-05-14 12:40:54 -04:00
|
|
|
* Deprecate `AbstractController::Base.parent_prefixes`.
|
|
|
|
Override `AbstractController::Base.local_prefixes` when you want to change
|
|
|
|
where to find views.
|
2014-05-10 02:52:44 -04:00
|
|
|
|
|
|
|
*Nick Sutterer*
|
|
|
|
|
2014-05-14 12:40:54 -04:00
|
|
|
* Take label values into account when doing I18n lookups for model attributes.
|
2014-05-05 18:48:53 -04:00
|
|
|
|
|
|
|
The following:
|
|
|
|
|
|
|
|
# form.html.erb
|
|
|
|
<%= form_for @post do |f| %>
|
|
|
|
<%= f.label :type, value: "long" %>
|
|
|
|
<% end %>
|
|
|
|
|
|
|
|
# en.yml
|
|
|
|
en:
|
|
|
|
activerecord:
|
|
|
|
attributes:
|
|
|
|
post/long: "Long-form Post"
|
|
|
|
|
|
|
|
Used to simply return "long", but now it will return "Long-form
|
|
|
|
Post".
|
|
|
|
|
|
|
|
*Joshua Cody*
|
|
|
|
|
2014-05-02 05:56:03 -04:00
|
|
|
* Change `asset_path` to use File.join to create proper paths:
|
2014-05-01 15:10:56 -04:00
|
|
|
|
2014-05-16 03:03:26 -04:00
|
|
|
Before:
|
|
|
|
|
2014-05-01 15:10:56 -04:00
|
|
|
https://some.host.com//assets/some.js
|
|
|
|
|
2014-05-16 03:03:26 -04:00
|
|
|
After:
|
2014-05-01 15:10:56 -04:00
|
|
|
|
|
|
|
https://some.host.com/assets/some.js
|
|
|
|
|
|
|
|
*Peter Schröder*
|
|
|
|
|
2013-12-16 06:13:18 -05:00
|
|
|
* Change `favicon_link_tag` default mimetype from `image/vnd.microsoft.icon` to
|
|
|
|
`image/x-icon`.
|
|
|
|
|
|
|
|
Before:
|
2014-05-02 05:56:03 -04:00
|
|
|
|
2013-12-16 06:13:18 -05:00
|
|
|
#=> favicon_link_tag 'myicon.ico'
|
|
|
|
<link href="/assets/myicon.ico" rel="shortcut icon" type="image/vnd.microsoft.icon" />
|
|
|
|
|
|
|
|
After:
|
|
|
|
|
|
|
|
#=> favicon_link_tag 'myicon.ico'
|
|
|
|
<link href="/assets/myicon.ico" rel="shortcut icon" type="image/x-icon" />
|
|
|
|
|
|
|
|
*Geoffroy Lorieux*
|
|
|
|
|
2014-04-13 18:38:46 -04:00
|
|
|
* Remove wrapping div with inline styles for hidden form fields.
|
|
|
|
|
|
|
|
We are dropping HTML 4.01 and XHTML strict compliance since input tags directly
|
2014-07-11 05:15:00 -04:00
|
|
|
inside a form are valid HTML5, and the absence of inline styles help in validating
|
2014-04-13 18:38:46 -04:00
|
|
|
for Content Security Policy.
|
|
|
|
|
|
|
|
*Joost Baaij*
|
|
|
|
|
2014-04-13 14:58:42 -04:00
|
|
|
* `collection_check_boxes` respects `:index` option for the hidden filed name.
|
|
|
|
|
|
|
|
Fixes #14147.
|
|
|
|
|
|
|
|
*Vasiliy Ermolovich*
|
|
|
|
|
2014-03-21 16:28:47 -04:00
|
|
|
* `date_select` helper with option `with_css_classes: true` does not overwrite other classes.
|
|
|
|
|
|
|
|
*Izumi Wong-Horiuchi*
|
|
|
|
|
2014-03-17 05:55:21 -04:00
|
|
|
* `number_to_percentage` does not crash with `Float::NAN` or `Float::INFINITY`
|
|
|
|
as input.
|
|
|
|
|
|
|
|
Fixes #14405.
|
|
|
|
|
|
|
|
*Yves Senn*
|
|
|
|
|
2013-10-27 11:14:16 -04:00
|
|
|
* Add `include_hidden` option to `collection_check_boxes` helper.
|
|
|
|
|
|
|
|
*Vasiliy Ermolovich*
|
|
|
|
|
2014-03-04 06:12:18 -05:00
|
|
|
* Fixed a problem where the default options for the `button_tag` helper is not
|
|
|
|
applied correctly.
|
|
|
|
|
|
|
|
Fixes #14254.
|
|
|
|
|
|
|
|
*Sergey Prikhodko*
|
|
|
|
|
2014-03-01 12:59:56 -05:00
|
|
|
* Take variants into account when calculating template digests in ActionView::Digestor.
|
|
|
|
|
|
|
|
The arguments to ActionView::Digestor#digest are now being passed as a hash
|
|
|
|
to support variants and allow more flexibility in the future. The support for
|
|
|
|
regular (required) arguments is deprecated and will be removed in Rails 5.0 or later.
|
|
|
|
|
|
|
|
*Piotr Chmolowski, Łukasz Strzałkowski*
|
|
|
|
|
2014-02-25 07:14:35 -05:00
|
|
|
Please check [4-1-stable](https://github.com/rails/rails/blob/4-1-stable/actionview/CHANGELOG.md) for previous changes.
|