Hi,
when contructing a http form parameter for a Boolean, what value ca be used to represent true?
That is, ruby on rails database field set to BOOLEAN for a mysql database.
Hi,
when contructing a http form parameter for a Boolean, what value ca be used to represent true?
That is, ruby on rails database field set to BOOLEAN for a mysql database.
A value of 1
will evaluate to true
and 0
will evaluate to false
.
A good little reference/example is available here.