mirror of
https://github.com/github/rails.git
synced 2026-04-26 03:00:59 -04:00
document :checked => true in #radio_button.
This commit is contained in:
@@ -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":
|
||||
|
||||
Reference in New Issue
Block a user