Boolean trouble

rails recognized a tinyint(1) in mysql as a boolean value, so a
model.boolean = true writes a one, however a model.boolean = false
writes nothing, how can I write a zero? if I do model.boolean = 0 it
does not write anything in the database

I got it, the problem was that the validates presence of filter treats 0

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs