How to remove files .jpg from server using runner?
Should I remove records in photo table??
I haven’t used CarrierWave yet, but many of the other file attachment
gems delete the underlying file when the the corresponding object is
destroyed. Try this in console –
Photo.first.destroy
Then look in your file folder to see if the matching file is actually
gone.
Walter
This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.