Relative Content

Tag Archive for ruby-on-railsgoogle-cloud-storage

ruby on rails: error “unknown keyword: :soft_deleted” when download file with google-cloud-storage

bucket_name = “bucket name” file_name = ‘file_name.csv’ storage = Google::Cloud::Storage.new( project_id: “project id”, ) file = storage.bucket(bucket_name).file(file_name) file.download(to: “path/to/local/file/#{file_name}”) when I download file with code above, I get error :”unknown keyword: :soft_deleted”. I don’t know why, please help! ecpected: I can download file from GCS ruby-on-rails google-cloud-storage Looking at the error, I believe you are […]