Hey Everyone I'm working on rails 6 and building an admin panel using Administrate Gem. I have a product model "has_many_attached :images"
but administrate does not recognizing:
images_attachments: Field::HasMany.with_options(class_name: "ActiveStorage::Attachment"),
images_blobs: Field::HasMany.with_options(class_name: "ActiveStorage::Blob"),
And Showing me text filed instead of file upload.
And I have also tried administrate-field-active_storage gem but when I tried to upload image, after everything i followed mention in Gem's doc, Now It's giving me this error:
undefined method `each' for #ActionDispatch::Http::UploadedFile:0x00007fa17c5af9e0
please advise me any direction.