If one use checkbox in rails application for boolen values, params has will
contains "1" or "0" strings.
It would be nice if syntaxes boolen class convert it to boolean value like
this:
def normalize_value(value)
case value
when true, 1, "1"
"TRUE"
when false, 0, "0"
"FALSE"
else
value
end
end
Original issue reported on code.google.com by projektt...@gmail.com on 24 May 2010 at 6:01
Original issue reported on code.google.com by
projektt...@gmail.com
on 24 May 2010 at 6:01