Permalink
Browse files

Missed checked in Form Helper example

  • Loading branch information...
1 parent 50f79da commit e6de2084ef8a98c04e300b4cff273a62bfdc7dc7 @avakhov avakhov committed Apr 24, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 actionpack/lib/action_view/helpers/form_helper.rb
View
2 actionpack/lib/action_view/helpers/form_helper.rb
@@ -902,7 +902,7 @@ def text_area(object_name, method, options = {})
# # 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")

0 comments on commit e6de208

Please sign in to comment.