boolean value

6 views
Skip to first unread message

Gökçe Asova

unread,
Jan 15, 2015, 1:59:44 PM1/15/15
to ceq...@googlegroups.com
Hi, 

In my rails project I use a checkbox, when not checked and when submited it is saved with the value true.

Could that be a bug in cequel? 

Kind Regards

Matthew A. Brown

unread,
Jan 16, 2015, 7:57:20 AM1/16/15
to Gökçe Asova, ceq...@googlegroups.com
What are the params received by the controller?
--
You received this message because you are subscribed to the Google Groups "Cequel" group.
To unsubscribe from this group and stop receiving emails from it, send an email to cequel+un...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Gökçe ASOVA

unread,
Jan 16, 2015, 8:15:02 AM1/16/15
to Matthew A. Brown, ceq...@googlegroups.com
Controller recrives  "1" or "0" for boolean types fields but for both values the saved data in cassandra is True. Even if checkbox is not set.

At the present I've found a solution by using varint type.

Sent from my iPhone

Matthew A. Brown

unread,
Jan 16, 2015, 9:19:45 AM1/16/15
to Gökçe ASOVA, ceq...@googlegroups.com
I can understand why that is happening. I assume ActiveRecord will cast a "0" to false in a boolean column?
Reply all
Reply to author
Forward
0 new messages