Method: ActionView::Helpers::Tags::RadioButton#render

Defined in:
actionview/lib/action_view/helpers/tags/radio_button.rb

#renderObject



16
17
18
19
20
21
22
23
# File 'actionview/lib/action_view/helpers/tags/radio_button.rb', line 16

def render
  options = @options.stringify_keys
  options["type"]     = "radio"
  options["value"]    = @tag_value
  options["checked"] = "checked" if input_checked?(options)
  add_default_name_and_id_for_value(@tag_value, options)
  tag("input", options)
end