How can i get url of my attachment stored in active storage in my rails controller
问题 How can i get url of my has_one model attachment stored in active storage in my rails controller. So, that I would be able to send it as full link as api in json. So far, I have tried following methods but each of them are giving various issues: 1) current_user.image.service_url ---- undefined method `service_url' for # 2) Rails.application.routes.url_helpers.rails_disk_blob_path(current_user.image, only_path: true) , it gives me an output like: "/rails/blobs/%23%3CActiveStorage::Attached: