Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Alias
field_set_tag
helper to fieldset_tag
The [field_set_tag][] renders a `<fieldset>` element. At times, the desire to render a `fieldset` results in calling `fieldset_tag`, only to be surprised by a `NoMethodError`. Originally, the method's name was `fieldset_tag` helper (defined in [0e6c8e5][] in 2007), but was renamed in [73c7083][] (3 days later). This commit aliases `field_set_tag` to `fieldset_tag` so that both are available. Additionally, defines the method so that it utilizes the [content_tag][] so that it isn't responsible for manually managing the closing (`</fieldset>`) of the opening `<fieldset>` tag. [field_set_tag]: https://edgeapi.rubyonrails.org/classes/ActionView/Helpers/FormTagHelper.html#method-i-field_set_tag [0e6c8e5]: 0e6c8e5 [73c7083]: 73c7083 [content_tag]: https://edgeapi.rubyonrails.org/classes/ActionView/Helpers/TagHelper.html#method-i-content_tag
- Loading branch information