Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

document :checked => true in #radio_button.

  • Loading branch information...
commit 623b1b9669c31411f738a651df21bcb9134e138c 1 parent 71947e3
@fxn fxn authored
Showing with 4 additions and 2 deletions.
  1. +4 −2 actionpack/lib/action_view/helpers/form_helper.rb
View
6 actionpack/lib/action_view/helpers/form_helper.rb
@@ -646,8 +646,10 @@ def check_box(object_name, method, options = {}, checked_value = "1", unchecked_
# Returns a radio button tag for accessing a specified attribute (identified by +method+) on an object
# assigned to the template (identified by +object+). If the current value of +method+ is +tag_value+ the
- # radio button will be checked. Additional options on the input tag can be passed as a
- # hash with +options+.
+ # radio button will be checked.
+ #
+ # To force the radio button to be checked pass <tt>:checked => true</tt> in the
+ # +options+ hash. You may pass HTML options there as well.
#
# ==== Examples
# # Let's say that @post.category returns "rails":
Please sign in to comment.
Something went wrong with that request. Please try again.