Optional Image Upload


#1

Attachment_fu is making an assumption that image will always be
uploaded. This is causing problem in my application where the field is
optional. Does anyone know how to make the image upload optional
without blowing up the app?

Is there any other plugin that does not make such an assumption? TIA.


#2

removed_email_address@domain.invalid wrote:

Attachment_fu is making an assumption that image will always be
uploaded. This is causing problem in my application where the field is
optional. Does anyone know how to make the image upload optional
without blowing up the app?

Is there any other plugin that does not make such an assumption? TIA.

I haven’t tried attachment_fu, but the file_column plugin lets you
specify (or omit) validates_presence_of just like you would with any
other attribute.

Chris K.