I have a simple problem. I get a boolean value in the parameter hash
and want to negate it. But somehow I missed there a fundamental
concept, because that doesn't make any sense to me:
I have a simple problem. I get a boolean value in the parameter hash
and want to negate it. But somehow I missed there a fundamental
concept, because that doesn't make any sense to me:
All controller parameters are strings, so this negation doesn't do
what you think it does (because strings are not nil and they are not
the boolean value false, any string always has the logical value true,
and its negation the logical value false). You need to compare the
parameters with whatever string you have decided represents true/false