有谁知道在 rails 5.2+ 上使用 ActiveStorage 时如何计算 active_storage_blobs 中的校验和字段?
对于奖励积分,有谁知道我如何才能使用与 md5 CLI 命令中的校验和匹配的 md5 校验和?
该文档仅显示将文件附加到模型的方法(http://edgeguides.rubyonrails.org/active_storage_overview.html#attaching-file-io-objects)。
固定装置怎么样?
在我的模型中,has_one_attached :file我尝试了按键file,file_attachments但不起作用。
我是否必须明确创建固定装置文件ActiveStorage::Attachment和/或ActiveStorage::Blob?