views:

139

answers:

1

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.

+2  A: 

A value of 1 will evaluate to true and 0 will evaluate to false.

A good little reference/example is available here.

Doug Neiner
Oh, I was using "True" and it seemed to work or a Save but not for an Update...
Greg