aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack
diff options
context:
space:
mode:
authorXavier Noria <fxn@hashref.com>2009-02-17 17:01:49 +0100
committerXavier Noria <fxn@hashref.com>2009-02-17 17:01:49 +0100
commit623b1b9669c31411f738a651df21bcb9134e138c (patch)
treee4a929de3d7434bacaa7405cda7385e878f0340e /actionpack
parent71947e30cc102e8512d76932dee015802a314d32 (diff)
downloadrails-623b1b9669c31411f738a651df21bcb9134e138c.tar.gz
rails-623b1b9669c31411f738a651df21bcb9134e138c.tar.bz2
rails-623b1b9669c31411f738a651df21bcb9134e138c.zip
document :checked => true in #radio_button.
Diffstat (limited to 'actionpack')
-rw-r--r--actionpack/lib/action_view/helpers/form_helper.rb6
1 files changed, 4 insertions, 2 deletions
diff --git a/actionpack/lib/action_view/helpers/form_helper.rb b/actionpack/lib/action_view/helpers/form_helper.rb
index 0651f75cfb..37400bdbf7 100644
--- a/actionpack/lib/action_view/helpers/form_helper.rb
+++ b/actionpack/lib/action_view/helpers/form_helper.rb
@@ -646,8 +646,10 @@ module ActionView
# 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":