mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
Merge pull request #33286 from ph3t/add-changelog-entry-for-42c3537
Add changelog entry for 42c3537
[ci skip]
This commit is contained in:
commit
90e2739d86
1 changed files with 13 additions and 1 deletions
|
@ -1,3 +1,15 @@
|
|||
* Mark arrays of translations as trusted safe by using the `_html` suffix.
|
||||
|
||||
Example:
|
||||
|
||||
en:
|
||||
foo_html:
|
||||
- "One"
|
||||
- "<strong>Two</strong>"
|
||||
- "Three 👋 🙂"
|
||||
|
||||
*Juan Broullon*
|
||||
|
||||
* Add `year_format` option to date_select tag. This option makes it possible to customize year
|
||||
names. Lambda should be passed to use this option.
|
||||
|
||||
|
@ -5,7 +17,7 @@
|
|||
|
||||
date_select('user_birthday', '', start_year: 1998, end_year: 2000, year_format: ->year { "Heisei #{year - 1988}" })
|
||||
|
||||
The HTML produced:
|
||||
The HTML produced:
|
||||
|
||||
<select id="user_birthday__1i" name="user_birthday[(1i)]">
|
||||
<option value="1998">Heisei 10</option>
|
||||
|
|
Loading…
Reference in a new issue