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.

Screencast tutorials to help you learn Ruby on Rails, Javascript, Hotwire, Turbo, Stimulus.js, PostgreSQL, MySQL, Ubuntu, and more. Icons by Icons8

© 2023 GoRails, LLC. All rights reserved.