In my model class I have a boolean attribute which can be NULL. I’d like
to set all three possible values from the UI using radio buttons. These
radio buttons have the values “true”, “false”, and “” respectively. The
trouble is that Column#type_cast casts “” to false. The only way to get
a nil value out of #type_cast, is to pass in nil. Of course, that’s not
what I get in the request; there the closest thing to a nil is an empty
So, how are others handling this?