Forum: Ruby on Rails Clearing string attribute

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
56b2766d535e1ab4b075dfdb7535116c?d=identicon&s=25 Deepak (Guest)
on 2009-04-08 20:38
(Received via mailing list)
I am missing something very basic. I have a string attribute which I
need to clear before saving the record.

model.attribute = nil is not working. It works fine for another
attribute which is a number

The string attribute is nullable and was created via migration

Thanks,
Deepak
This topic is locked and can not be replied to.