mysql - Rails Active Admin PUT not updating boolean values (SQL Server) -


i switched sql server on production, , realized active admin put calls aren't updating boolean values in database. put calls return 302, , not update record though can see parameter being sent in expected. example if boolean set false, , wanted set true, active admin correctly send values in value => true, not update.

one thing noticed funny, on heroku run our tests, values these fields update fine in active admin. on production, sql server used, values show 1 , 0, not true or false. have feeling part of issues.

my question is, why of booleans show 1 , 0 on sql server, , on heroku , mysql show true or false? how can fix these values make show true , false, rather 1 , 0?

more information. updating these values via rails console, , in application, work fine. can model.field = true model.save in environments successfully.

i had same problem you, can solved adding boolean field permit params.


Comments

Popular posts from this blog

jquery - How can I dynamically add a browser tab? -

node.js - Getting the socket id,user id pair of a logged in user(s) -

keyboard - C++ GetAsyncKeyState alternative -