Displaying 1 result from an estimated 1 matches for "m001056".
Did you mean:
1001056
2007 Nov 21
3
update_attribute weirdness in edge
If I am changing a boolean value, no matter what approach I take, I
get the same results:
lets say table "users" has an "enabled" field that is boolean:
user = User.find(1)
user.enabled.toggle
NoMethodError: undefined method `toggle'' for false:FalseClass
user = User.find(1)
toggle(user.enabled)
NoMethodError: undefined method `toggle'' for