diff options
author | Masato Oba <masato.oba@smartsitter.jp> | 2017-10-08 10:25:45 +0900 |
---|---|---|
committer | Masato Oba <masato.oba@smartsitter.jp> | 2017-10-08 10:25:51 +0900 |
commit | 11a89674aff171155043fa284035243982842d8d (patch) | |
tree | b74a9f4c66de0698cd72ef0c47865c1c74a096df /actionview | |
parent | b4dfc18d67ed9302fed8d680dfcb433b67a011eb (diff) | |
download | rails-11a89674aff171155043fa284035243982842d8d.tar.gz rails-11a89674aff171155043fa284035243982842d8d.tar.bz2 rails-11a89674aff171155043fa284035243982842d8d.zip |
Fix radio_button_tag comment
Colons, periods, etc. can also be included in id.
The sanitize_to_id method does not remove them.
Diffstat (limited to 'actionview')
-rw-r--r-- | actionview/lib/action_view/helpers/form_tag_helper.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/actionview/lib/action_view/helpers/form_tag_helper.rb b/actionview/lib/action_view/helpers/form_tag_helper.rb index 31a1f8be8c..8a08e49e2f 100644 --- a/actionview/lib/action_view/helpers/form_tag_helper.rb +++ b/actionview/lib/action_view/helpers/form_tag_helper.rb @@ -394,7 +394,7 @@ module ActionView # # => <input checked="checked" id="receive_updates_no" name="receive_updates" type="radio" value="no" /> # # radio_button_tag 'time_slot', "3:00 p.m.", false, disabled: true - # # => <input disabled="disabled" id="time_slot_300_pm" name="time_slot" type="radio" value="3:00 p.m." /> + # # => <input disabled="disabled" id="time_slot_3:00_p.m." name="time_slot" type="radio" value="3:00 p.m." /> # # radio_button_tag 'color', "green", true, class: "color_input" # # => <input checked="checked" class="color_input" id="color_green" name="color" type="radio" value="green" /> |