2015-12-30 22:40:33 -05:00
|
|
|
* Fix `collection_radio_buttons` hidden_field name and make it appear
|
|
|
|
before the actual input radio tags to make the real value override
|
|
|
|
the hidden when passed.
|
|
|
|
|
|
|
|
Fixes #22773
|
|
|
|
|
|
|
|
*Santiago Pastorino*
|
|
|
|
|
2015-12-29 10:37:07 -05:00
|
|
|
* `ActionView::TestCase::Controller#params` returns an instance of
|
|
|
|
`ActionController::Parameters`.
|
|
|
|
|
|
|
|
*Justin Coyne*
|
|
|
|
|
2015-12-24 04:09:19 -05:00
|
|
|
* Fix regression in `submit_tag` when a symbol is used as label argument.
|
|
|
|
|
|
|
|
*Yuuji Yaginuma*
|
|
|
|
|
|
|
|
|
2015-12-18 15:58:25 -05:00
|
|
|
## Rails 5.0.0.beta1 (December 18, 2015) ##
|
|
|
|
|
2015-12-01 10:49:44 -05:00
|
|
|
* `I18n.translate` helper will wrap the missing translation keys
|
|
|
|
in a <span> tag only if `debug_missing_translation` configuration
|
|
|
|
be true. Default value is `true`. For example in `application.rb`:
|
|
|
|
|
|
|
|
# in order to turn off missing key wrapping
|
2015-12-18 21:37:54 -05:00
|
|
|
config.action_view.debug_missing_translation = false
|
2015-12-01 10:49:44 -05:00
|
|
|
|
|
|
|
*Sameer Rahmani*
|
|
|
|
|
2015-11-12 21:41:24 -05:00
|
|
|
* Respect value of `:object` if `:object` is false when rendering.
|
|
|
|
|
|
|
|
Fixes #22260.
|
|
|
|
|
|
|
|
*Yuichiro Kaneko*
|
|
|
|
|
2015-11-05 05:20:00 -05:00
|
|
|
* Generate `week_field` input values using a 1-based index and not a 0-based index
|
|
|
|
as per the W3 spec: http://www.w3.org/TR/html-markup/datatypes.html#form.data.week
|
|
|
|
|
|
|
|
*Christoph Geschwind*
|
|
|
|
|
2015-11-09 00:28:28 -05:00
|
|
|
* Allow `host` option in `javascript_include_tag` and `stylesheet_link_tag` helpers
|
2015-11-08 08:39:39 -05:00
|
|
|
|
|
|
|
*Grzegorz Witek*
|
|
|
|
|
2015-11-03 20:17:10 -05:00
|
|
|
* Restrict `url_for :back` to valid, non-JavaScript URLs. GH#14444
|
|
|
|
|
|
|
|
*Damien Burke*
|
|
|
|
|
2015-10-29 13:15:19 -04:00
|
|
|
* Allow `date_select` helper selected option to accept hash like the default options.
|
|
|
|
|
|
|
|
*Lecky Lao*
|
|
|
|
|
2015-06-08 16:55:10 -04:00
|
|
|
* Collection input propagates input's `id` to the label's `for` attribute when
|
|
|
|
using html options as the last element of collection.
|
|
|
|
|
|
|
|
*Vasiliy Ermolovich*
|
|
|
|
|
2015-01-02 13:53:38 -05:00
|
|
|
* Add a `hidden_field` on the `collection_radio_buttons` to avoid raising a error
|
|
|
|
when the only input on the form is the `collection_radio_buttons`.
|
|
|
|
|
|
|
|
*Mauro George*
|
|
|
|
|
2015-09-04 15:23:29 -04:00
|
|
|
* `url_for` does not modify its arguments when generating polymorphic URLs.
|
|
|
|
|
|
|
|
*Bernerd Schaefer*
|
|
|
|
|
2015-12-17 23:00:13 -05:00
|
|
|
* `number_to_currency` and `number_with_delimiter` now accept a custom `delimiter_pattern` option
|
|
|
|
to handle placement of delimiter, to support currency formats like INR.
|
|
|
|
|
|
|
|
Example:
|
|
|
|
|
2014-11-04 02:22:41 -05:00
|
|
|
number_to_currency(1230000, delimiter_pattern: /(\d+?)(?=(\d\d)+(\d)(?!\d))/, unit: '₹', format: "%u %n")
|
2015-12-17 23:00:13 -05:00
|
|
|
# => '₹ 12,30,000.00'
|
|
|
|
|
2014-11-04 02:22:41 -05:00
|
|
|
*Vipul A M*
|
2015-12-17 23:00:13 -05:00
|
|
|
|
2015-08-05 12:38:43 -04:00
|
|
|
* Make `disable_with` the default behavior for submit tags. Disables the
|
|
|
|
button on submit to prevent double submits.
|
|
|
|
|
|
|
|
*Justin Schiff*
|
|
|
|
|
2015-08-11 17:15:47 -04:00
|
|
|
* Add a break_sequence option to word_wrap so you can specify a custom break.
|
|
|
|
|
2015-11-12 22:43:50 -05:00
|
|
|
*Mauricio Gomez*
|
2015-08-11 17:15:47 -04:00
|
|
|
|
2015-07-15 17:32:45 -04:00
|
|
|
* Add wildcard matching to explicit dependencies.
|
|
|
|
|
|
|
|
Turns:
|
|
|
|
|
|
|
|
```erb
|
|
|
|
<% # Template Dependency: recordings/threads/events/subscribers_changed %>
|
|
|
|
<% # Template Dependency: recordings/threads/events/completed %>
|
|
|
|
<% # Template Dependency: recordings/threads/events/uncompleted %>
|
|
|
|
```
|
|
|
|
|
|
|
|
Into:
|
|
|
|
|
|
|
|
```erb
|
|
|
|
<% # Template Dependency: recordings/threads/events/* %>
|
|
|
|
```
|
|
|
|
|
|
|
|
*Kasper Timm Hansen*
|
|
|
|
|
2015-07-04 22:34:00 -04:00
|
|
|
* Allow defining explicit collection caching using a `# Template Collection: ...`
|
|
|
|
directive inside templates.
|
|
|
|
|
|
|
|
*Dov Murik*
|
|
|
|
|
2015-06-29 04:48:47 -04:00
|
|
|
* Asset helpers raise `ArgumentError` when `nil` is passed as a source.
|
|
|
|
|
|
|
|
*Anton Kolomiychuk*
|
|
|
|
|
2015-06-12 15:30:04 -04:00
|
|
|
* Always attach the template digest to the cache key for collection caching
|
|
|
|
even when `virtual_path` is not available from the view context.
|
|
|
|
Which could happen if the rendering was done directly in the controller
|
|
|
|
and not in a template.
|
|
|
|
|
2015-12-22 07:26:59 -05:00
|
|
|
Fixes #20535.
|
2015-06-12 15:30:04 -04:00
|
|
|
|
|
|
|
*Roque Pinel*
|
|
|
|
|
2015-06-01 21:56:31 -04:00
|
|
|
* Improve detection of partial templates eligible for collection caching,
|
|
|
|
now allowing multi-line comments at the beginning of the template file.
|
|
|
|
|
|
|
|
*Dov Murik*
|
|
|
|
|
2015-12-22 07:26:59 -05:00
|
|
|
* Raise an `ArgumentError` when a false value for `include_blank` is passed to a
|
2015-05-12 10:10:20 -04:00
|
|
|
required select field (to comply with the HTML5 spec).
|
|
|
|
|
|
|
|
*Grey Baker*
|
|
|
|
|
2015-05-16 01:30:17 -04:00
|
|
|
* Do not put partial name to `local_assigns` when rendering without
|
|
|
|
an object or a collection.
|
2015-05-14 02:42:55 -04:00
|
|
|
|
|
|
|
*Henrik Nygren*
|
|
|
|
|
2015-05-04 17:46:25 -04:00
|
|
|
* Remove `:rescue_format` option for `translate` helper since it's no longer
|
|
|
|
supported by I18n.
|
|
|
|
|
|
|
|
*Bernard Potocki*
|
|
|
|
|
2015-05-04 16:26:07 -04:00
|
|
|
* `translate` should handle `raise` flag correctly in case of both main and default
|
|
|
|
translation is missing.
|
|
|
|
|
2015-12-22 07:26:59 -05:00
|
|
|
Fixes #19967.
|
2015-05-04 16:26:07 -04:00
|
|
|
|
|
|
|
*Bernard Potocki*
|
|
|
|
|
2015-04-06 22:20:57 -04:00
|
|
|
* Load the `default_form_builder` from the controller on initialization, which overrides
|
|
|
|
the global config if it is present.
|
|
|
|
|
|
|
|
*Kevin McPhillips*
|
|
|
|
|
2015-04-05 15:51:19 -04:00
|
|
|
* Accept lambda as `child_index` option in `fields_for` method.
|
|
|
|
|
|
|
|
*Karol Galanciak*
|
|
|
|
|
2015-04-04 13:23:54 -04:00
|
|
|
* `translate` allows `default: [[]]` again for a default value of `[]`.
|
2015-04-04 12:46:45 -04:00
|
|
|
|
2015-04-04 13:23:54 -04:00
|
|
|
Fixes #19640.
|
2015-04-04 12:46:45 -04:00
|
|
|
|
|
|
|
*Adam Prescott*
|
|
|
|
|
2015-03-20 16:58:54 -04:00
|
|
|
* `translate` should accept nils as members of the `:default`
|
2015-04-22 08:44:30 -04:00
|
|
|
parameter without raising a translation missing error.
|
2015-03-20 16:58:54 -04:00
|
|
|
|
2015-12-22 07:26:59 -05:00
|
|
|
Fixes #19419.
|
2015-03-20 16:58:54 -04:00
|
|
|
|
|
|
|
*Justin Coyne*
|
|
|
|
|
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*
|
|
|
|
|
2015-10-06 03:15:19 -04:00
|
|
|
* Add a `hidden_field` on the `file_field` to avoid raising an error when the only
|
2014-12-08 17:22:36 -05:00
|
|
|
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-05-16 01:30:17 -04:00
|
|
|
* Allow entries without a link tag in `AtomFeedHelper`.
|
2015-01-10 11:06:53 -05:00
|
|
|
|
|
|
|
*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.
|