CHANGELOG.md 2.2 KB
Newer Older
1 2 3 4 5 6 7 8
*   Allow the use of callable objects as group methods for grouped selects.

    Until now, the `option_groups_from_collection_for_select` method was only able to
    handle method names as `group_method` and `group_label_method` parameters,
    it is now able to receive procs and other callable objects too.

    *Jérémie Bonal*

G
Guillermo Iguaran 已提交
9 10 11
*   Add `preload_link_tag` helper

    This helper that allows to the browser to initiate early fetch of resources
R
Ryuta Kamizono 已提交
12
    (different to the specified in `javascript_include_tag` and `stylesheet_link_tag`).
G
Guillermo Iguaran 已提交
13 14 15 16
    Additionally, this sends Early Hints if supported by browser.

    *Guillermo Iguaran*

17 18 19 20 21
## Rails 5.2.0.beta2 (November 28, 2017) ##

*   No changes.


22 23
## Rails 5.2.0.beta1 (November 27, 2017) ##

24 25 26 27 28 29 30 31 32 33 34
*   Change `form_with` to generates ids by default.

    When `form_with` was introduced we disabled the automatic generation of ids
    that was enabled in `form_for`. This usually is not an good idea since labels don't work
    when the input doesn't have an id and it made harder to test with Capybara.

    You can still disable the automatic generation of ids setting `config.action_view.form_with_generates_ids`
    to `false.`

    *Nick Pezza*

35 36 37 38 39 40
*   Fix issues with `field_error_proc` wrapping `optgroup` and select divider `option`.

    Fixes #31088

    *Matthias Neumayr*

41 42 43 44
*   Remove deprecated Erubis ERB handler.

    *Rafael Mendonça França*

45 46 47 48 49 50
*   Remove default `alt` text generation.

    Fixes #30096

    *Cameron Cundiff*

51
*   Add `srcset` option to `image_tag` helper.
52 53 54

    *Roberto Miranda*

R
Ryuta Kamizono 已提交
55 56
*   Fix issues with scopes and engine on `current_page?` method.

S
savroff 已提交
57
    Fixes #29401.
R
Ryuta Kamizono 已提交
58

S
savroff 已提交
59
    *Nikita Savrov*
R
Ryuta Kamizono 已提交
60

61 62 63 64 65 66 67 68
*   Generate field ids in `collection_check_boxes` and `collection_radio_buttons`.

    This makes sure that the labels are linked up with the fields.

    Fixes #29014.

    *Yuji Yaginuma*

69 70 71 72
*   Add `:json` type to `auto_discovery_link_tag` to support [JSON Feeds](https://jsonfeed.org/version/1)

    *Mike Gunderloy*

R
Ryuta Kamizono 已提交
73
*   Update `distance_of_time_in_words` helper to display better error messages
74 75 76 77
    for bad input.

    *Jay Hayes*

R
Ryuta Kamizono 已提交
78

M
Matthew Draper 已提交
79
Please check [5-1-stable](https://github.com/rails/rails/blob/5-1-stable/actionview/CHANGELOG.md) for previous changes.