Displaying 1 result from an estimated 1 matches for "to_boolean_select_tag".
2005 Mar 04
3
Boolean values
...== :boolean ?
"''f''" : "0")
+ when TrueClass then "1"
+ when FalseClass then "0"
Should that be posted to Trac?
Now my question. The Active Record Helper generates for :boolean fields a
InstanceTag#to_boolean_select_tag, which gives you the options "true" and
"false". The problem then is that ActiveRecord::Base#update_attributes leaves it
as a string, and the DBMS gives me an "error converting the varchar value
''false'' to a column of data type bit." I got as far a...