For some reason when users are skipping optional fields signing up, the database is filled with the string 'undefined' instead of NULL or a blank string.
I am using Rails 2.3.4 and MySQL.
Is this a known bug/issue for earlier versions of Rails?
Thank yo开发者_如何学Cu,
EricAdd a :default
option in the field of your schema to what you want
:default => null
or
:default => ""
Will work.
精彩评论