What form param values can be used for TRUE in a ruby on rails app with mysql db for a BOOLEAN field?
when contructing a http form parameter for a Boolean, what value ca be used to represent true?
That is, ruby on rails database开发者_C百科 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.
精彩评论