[ci skip] Fix CHANGELOG.md format from list to italic.
6.5 KiB
-
Respect value of
:object
if:object
is false when rendering.Fixes #22260.
Yuichiro Kaneko
-
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.weekChristoph Geschwind
-
Allow
host
option injavascript_include_tag
andstylesheet_link_tag
helpersGrzegorz Witek
-
Restrict
url_for :back
to valid, non-JavaScript URLs. GH#14444Damien Burke
-
Allow
date_select
helper selected option to accept hash like the default options.Lecky Lao
-
Collection input propagates input's
id
to the label'sfor
attribute when using html options as the last element of collection.Vasiliy Ermolovich
-
Add a
hidden_field
on thecollection_radio_buttons
to avoid raising a error when the only input on the form is thecollection_radio_buttons
.Mauro George
-
url_for
does not modify its arguments when generating polymorphic URLs.Bernerd Schaefer
-
number_to_currency
andnumber_with_delimiter
now accept customdelimiter_pattern
option to handle placement of delimiter, to support currency formats like INRExample:
number_to_currency(1230000, delimiter_pattern: /(\d+?)(?=(\d\d)+(\d)(?!\d))/, unit: '₹', format: "%u %n") # => '₹ 12,30,000.00'
Vipul A M
-
Make
disable_with
the default behavior for submit tags. Disables the button on submit to prevent double submits.Justin Schiff
-
Add a break_sequence option to word_wrap so you can specify a custom break.
Mauricio Gomez
-
Add wildcard matching to explicit dependencies.
Turns:
<% # Template Dependency: recordings/threads/events/subscribers_changed %> <% # Template Dependency: recordings/threads/events/completed %> <% # Template Dependency: recordings/threads/events/uncompleted %>
Into:
<% # Template Dependency: recordings/threads/events/* %>
Kasper Timm Hansen
-
Allow defining explicit collection caching using a
# Template Collection: ...
directive inside templates.Dov Murik
-
Asset helpers raise
ArgumentError
whennil
is passed as a source.Anton Kolomiychuk
-
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.Fixes #20535
Roque Pinel
-
Improve detection of partial templates eligible for collection caching, now allowing multi-line comments at the beginning of the template file.
Dov Murik
-
Raise an ArgumentError when a false value for
include_blank
is passed to a required select field (to comply with the HTML5 spec).Grey Baker
-
Do not put partial name to
local_assigns
when rendering without an object or a collection.Henrik Nygren
-
Remove
:rescue_format
option fortranslate
helper since it's no longer supported by I18n.Bernard Potocki
-
translate
should handleraise
flag correctly in case of both main and default translation is missing.Fixes #19967
Bernard Potocki
-
Load the
default_form_builder
from the controller on initialization, which overrides the global config if it is present.Kevin McPhillips
-
Accept lambda as
child_index
option infields_for
method.Karol Galanciak
-
translate
allowsdefault: [[]]
again for a default value of[]
.Fixes #19640.
Adam Prescott
-
translate
should accept nils as members of the:default
parameter without raising a translation missing error.Fixes #19419
Justin Coyne
-
number_to_percentage
does not crash withFloat::NAN
orFloat::INFINITY
as input whenprecision: 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:
<%= 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:
# 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 inimage_tag
andvideo_tag
.This makes the behavior more consistent with
width
orheight
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
toRaw
.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 thefile_field
to avoid raising an error when the only input on the form is thefile_field
.Mauro George
-
Add an explicit error message, in
ActionView::PartialRenderer
for partialrendering
, when the value of optionas
has invalid characters.Angelo Capilleri
-
Allow entries without a link tag in
AtomFeedHelper
.Daniel Gomez de Souza
Please check 4-2-stable for previous changes.