Forum: Ruby on Rails Clearing string attribute

Announcement (2017-05-07): is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see and for other Rails- und Ruby-related community platforms.
Deepak (Guest)
on 2009-04-08 22: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

This topic is locked and can not be replied to.