## Rails 7.0.2.3 (March 08, 2022) ## * No changes. ## Rails 7.0.2.2 (February 11, 2022) ## * No changes. ## Rails 7.0.2.1 (February 11, 2022) ## * No changes. ## Rails 7.0.2 (February 08, 2022) ## * Ensure `preload_link_tag` preloads JavaScript modules correctly. *Máximo Mussini* * Fix `stylesheet_link_tag` and similar helpers are being used to work in objects with a `response` method. *dark-panda* ## Rails 7.0.1 (January 06, 2022) ## * Fix `button_to` to work with a hash parameter as URL. *MingyuanQin* * Fix `link_to` with a model passed as an argument twice. *Alex Ghiculescu* ## Rails 7.0.0 (December 15, 2021) ## * Support `include_hidden:` option in calls to `ActionView::Helper::FormBuilder#file_field` with `multiple: true` to support submitting an empty collection of files. ```ruby form.file_field :attachments, multiple: true # => form.file_field :attachments, multiple: true, include_hidden: false # => ``` *Sean Doyle* * Fix `number_with_precision(raise: true)` always raising even on valid numbers. *Pedro Moreira* ## Rails 7.0.0.rc3 (December 14, 2021) ## * No changes. ## Rails 7.0.0.rc2 (December 14, 2021) ## * No changes. ## Rails 7.0.0.rc1 (December 06, 2021) ## * Support `fields model: [@nested, @model]` the same way as `form_with model: [@nested, @model]`. *Sean Doyle* * Infer HTTP verb `[method]` from a model or Array with model as the first argument to `button_to` when combined with a block: ```ruby button_to(Workshop.find(1)){ "Update" } #=>
button_to([ Workshop.find(1), Session.find(1) ]) { "Update" } #=> ``` *Sean Doyle* * Support passing a Symbol as the first argument to `FormBuilder#button`: ```ruby form.button(:draft, value: true) # => form.button(:draft, value: true) do content_tag(:strong, "Save as draft") end # => ``` *Sean Doyle* * Introduce the `field_name` view helper, along with the `FormBuilder#field_name` counterpart: ```ruby form_for @post do |f| f.field_tag :tag, name: f.field_name(:tag, multiple: true) # => end ``` *Sean Doyle* * Execute the `ActionView::Base.field_error_proc` within the context of the `ActionView::Base` instance: ```ruby config.action_view.field_error_proc = proc { |html| content_tag(:div, html, class: "field_with_errors") } ``` *Sean Doyle* * Add support for `button_to ..., authenticity_token: false` ```ruby button_to "Create", Post.new, authenticity_token: false # => button_to "Create", Post.new, authenticity_token: true # => button_to "Create", Post.new, authenticity_token: "secret" # => ``` *Sean Doyle* * Support rendering ` %> *Sean Doyle* * Change `ActionView::Helpers::UrlHelper#button_to` to *always* render a `