ruby on rails - Carrierwave or Paperclip: Keep image/file when updating other form fields -
when using either carrierwave or paperclip works expected exception of edit/update. when image or file exists record it's set nil on save if don't explicitly upload file.
what i've been looking for, haven't found, solution allows other form fields updated keeps existing file. unless, of course, file updated well.
my setup using nested models both carrierwave , paperclip i've tried following no success.
apparently i'm missing can't life of me figure out what.
any appreciated.
i use paperclip nested_form , it's straight forward, no surprises.
did make sure check if nested record new record or existing? want display file_field if it's new record, otherwise display image (or file_field). that's link explained.
additionally post params sent on submit - check logs that.