Subtrahieren Ich habe eine simple_form
, die eine Dropdown-Liste für ein boolesches Attribut hat.Rails: Ein boolesches Feld durch ein Dropdown-Menü in simple_form
<option value="0">None</option>
<option value="1">Yes</option>
Ist dies der richtige Weg, ein boolean-Attribut subitting, oder sollte ich eintragen als "true"
/"false"
?
Mein Modell scheint nicht 1
als true
zu akzeptieren, scheint es ...