Skip to content

Commit

Permalink
Fix radio_button_tag comment
Browse files Browse the repository at this point in the history
Colons, periods, etc. can also be included in id.
The sanitize_to_id method does not remove them.
  • Loading branch information
masatooba committed Oct 8, 2017
1 parent b4dfc18 commit 11a8967
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion actionview/lib/action_view/helpers/form_tag_helper.rb
Expand Up @@ -394,7 +394,7 @@ def check_box_tag(name, value = "1", checked = false, options = {})
# # => <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" />
Expand Down

0 comments on commit 11a8967

Please sign in to comment.