mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
Missed checked in Form Helper example
This commit is contained in:
parent
50f79daf59
commit
e6de2084ef
1 changed files with 1 additions and 1 deletions
|
@ -902,7 +902,7 @@ module ActionView
|
|||
# # Let's say that @post.validated? is 1:
|
||||
# check_box("post", "validated")
|
||||
# # => <input name="post[validated]" type="hidden" value="0" />
|
||||
# # <input type="checkbox" id="post_validated" name="post[validated]" value="1" />
|
||||
# # <input checked="checked" type="checkbox" id="post_validated" name="post[validated]" value="1" />
|
||||
#
|
||||
# # Let's say that @puppy.gooddog is "no":
|
||||
# check_box("puppy", "gooddog", {}, "yes", "no")
|
||||
|
|
Loading…
Reference in a new issue