The problem might be with your old records. As i suspect, by default config was something like:
Shrine.storages = {
cache: Shrine::Storage::FileSystem.new("public", prefix: "uploads/cache"), # temporary
store: Shrine::Storage::FileSystem.new("public", prefix: "uploads"), # permanent
}
Then you uploaded file for test purposes and renamed initial "store" store
Shrine.storages = {
new_cache: Shrine::Storage::FileSystem.new("public", prefix: "uploads/cache"), # temporary
**new_store**: Shrine::Storage::FileSystem.new("public", prefix: "uploads"), # permanent
}
Shrine tries to find the old "store" in your existing record and throws error
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…