aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSimon Tokumine <simon@japancentre.com>2008-09-28 22:14:45 +0100
committerSimon Tokumine <simon@japancentre.com>2008-09-28 22:14:45 +0100
commit037eee174889de9d1ac99352a74479c670476605 (patch)
tree7423100d1ab80f99fe564e100002d85ab08fbe63
parentc492288d1660f016f4b2cd1ed299e31786886a9b (diff)
downloadrails-037eee174889de9d1ac99352a74479c670476605.tar.gz
rails-037eee174889de9d1ac99352a74479c670476605.tar.bz2
rails-037eee174889de9d1ac99352a74479c670476605.zip
check_box form helper object must be an @instance object.
-rw-r--r--actionpack/lib/action_view/helpers/form_helper.rb8
1 files changed, 4 insertions, 4 deletions
diff --git a/actionpack/lib/action_view/helpers/form_helper.rb b/actionpack/lib/action_view/helpers/form_helper.rb
index 7bb82ba5bb..621e2946b5 100644
--- a/actionpack/lib/action_view/helpers/form_helper.rb
+++ b/actionpack/lib/action_view/helpers/form_helper.rb
@@ -442,10 +442,10 @@ module ActionView
end
# Returns a checkbox tag tailored for accessing a specified attribute (identified by +method+) on an object
- # assigned to the template (identified by +object+). It's intended that +method+ returns an integer and if that
- # integer is above zero, then the checkbox is checked. Additional options on the input tag can be passed as a
- # hash with +options+. The +checked_value+ defaults to 1 while the default +unchecked_value+
- # is set to 0 which is convenient for boolean values.
+ # assigned to the template (identified by +object+). This object must be an instance object (@object) and not a local object.
+ # It's intended that +method+ returns an integer and if that integer is above zero, then the checkbox is checked.
+ # Additional options on the input tag can be passed as a hash with +options+. The +checked_value+ defaults to 1
+ # while the default +unchecked_value+ is set to 0 which is convenient for boolean values.
#
# ==== Gotcha
#