Forum: Ruby on Rails file_column exception when file is unexpectedly deleted

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.
Bc78ecf1898c83d627f9779e0e47af15?d=identicon&s=25 Carsten Gehling (carsten)
on 2007-03-24 18:40
file_column does not handle inconsistency between the database and
filesystem well.

If I define an url_for_image_column like this:

        :geometry => "120x90",

It returns a wellformed url for the resized image.

BUT if I accidentally delete the image-file from the filesystem (in the
folder public/image/etc..), the above code results in a a NoMethodError

NoMethodError in User#welcome
Showing app/views/shared/_ad_list_frame_dog_sell.rhtml where line #60

You have a nil object when you didn't expect it!
You might have expected an instance of Array.
The error occurred while evaluating nil.split

What is the problem?
This topic is locked and can not be replied to.