开发者

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.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜