i have checkbox in simple form:
= f.input :status, as: :boolean
but i don't want values to be 0 or 1. i want them to be Strings, like eg 'not_done' and 'completed'. how can i achieve that? i ran into some kind of solution on github thread, but i don't really know what is it doing, plus, it always give me "new" as value, doesnt matter if the field is checked or not...
= f.input :status, as: :boolean do
- f.check_box :status, {}, "new", "confirmed"
f.check_box :Status, {}, "new", "confirmed". But just that part. Completely get rid of thef.input :status. That is shadowing the checkbox result.