motor-admin / motor-admin-rails

Low-code Admin panel and Business intelligence Rails engine. No DSL - configurable from the UI. Rails Admin, Active Admin, Blazer modern alternative.
https://app.getmotoradmin.com/demo/
MIT License
767 stars 77 forks source link

Boolean fields submitting nil instead of false #132

Closed dmanaster closed 1 year ago

dmanaster commented 1 year ago

I'm new to motor-admin, but am having a great experience so far, after trying activeadmin.

When I create a new record on a table that has boolean columns, if I do not check the boxes, they are saved as nil instead of false. If I go ahead and check them and then uncheck them, they get recorded properly as false values.

Am I doing something wrong?

Motor_Admin

thedumbtechguy commented 1 year ago

Do your boolean fields accept null?

dmanaster commented 1 year ago

@thedumbtechguy That was it. Thank you for your help!