From af4d9def812a92aed1087ce9678e91b534dcc985 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rafael=20Mendon=C3=A7a=20Fran=C3=A7a?= Date: Wed, 5 Jan 2022 20:50:37 +0000 Subject: [PATCH] Fix documentation output to remove escaping --- actionview/lib/action_view/helpers/date_helper.rb | 2 +- actionview/lib/action_view/helpers/form_tag_helper.rb | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/actionview/lib/action_view/helpers/date_helper.rb b/actionview/lib/action_view/helpers/date_helper.rb index f83581d95d..9435f4c942 100644 --- a/actionview/lib/action_view/helpers/date_helper.rb +++ b/actionview/lib/action_view/helpers/date_helper.rb @@ -1149,7 +1149,7 @@ module ActionView # Builds hidden input tag for date part and value. # build_hidden(:year, 2008) - # => "\n" + # => "" def build_hidden(type, value) select_options = { type: "hidden", diff --git a/actionview/lib/action_view/helpers/form_tag_helper.rb b/actionview/lib/action_view/helpers/form_tag_helper.rb index 61e0c3e3e8..5f013bad3a 100644 --- a/actionview/lib/action_view/helpers/form_tag_helper.rb +++ b/actionview/lib/action_view/helpers/form_tag_helper.rb @@ -294,14 +294,14 @@ module ActionView # # ==== Examples # hidden_field_tag 'tags_list' - # # => + # # => # # hidden_field_tag 'token', 'VUBJKB23UIVI1UU1VOBVI@' - # # => + # # => # # hidden_field_tag 'collected_input', '', onchange: "alert('Input collected!')" - # # => + # # => def hidden_field_tag(name, value = nil, options = {}) text_field_tag(name, value, options.merge(type: :hidden, autocomplete: "off")) end