Permalink
Browse files

check_box form helper object must be an @instance object.

  • Loading branch information...
1 parent c492288 commit 037eee174889de9d1ac99352a74479c670476605 Simon Tokumine committed Sep 28, 2008
Showing with 4 additions and 4 deletions.
  1. +4 −4 actionpack/lib/action_view/helpers/form_helper.rb
@@ -442,10 +442,10 @@ def text_area(object_name, method, options = {})
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
#

0 comments on commit 037eee1

Please sign in to comment.