Dmitriy

Joined

10 Experience
0 Lessons Completed
0 Questions Solved

Activity

Is it working properly?

@space_image = ActiveStorage::Blob.find_signed(params[:id])
@space_image.purge_later

I've found this way doesn't work correctly — the image still connected (.attached? = true)

One of the solutions can be:

@space_image.attachments.first.purge
logo Created with Sketch.

Ruby on Rails tutorials, guides, and screencasts for web developers learning Ruby, Rails, Javascript, Turbolinks, Stimulus.js, Vue.js, and more. Icons by Icons8

© 2021 GoRails, LLC. All rights reserved.