Displaying 1 result from an estimated 1 matches for "mynewth".
Did you mean:
mynet
2006 Aug 07
7
mysql Date field not getting set correctly
I created a simple test to try and pinpoint my problem but nothing seems
clear to me.
I created a Thing model with fields { id (INT), date (DATE) }
now when I try to create a new "thing" the date does not get stored, and
no errors are reported.
@myNewThing = Thing.new(:date => "2006-08-07")
@myNewThing.save
this results in a new record with a date of "0000-00-00"
what am I doing wrong?
--
Posted via http://www.ruby-forum.com/.