I have a rails application using refile to upload multiple images. I want to be able to manage these images for all the users in Activeadmin so if someone were to upload an offensive photo I can remove it from their profile through activeadmin. I don't know if its important to mention that these photos are being hosted on AWS.
f.inputs "Attachment", :multipart => true do
f.input :images, :hint => image_tag(f.object.images.each_with_index do |image, index|
attachment_image_tag(image, :file, :fit, 600, 600)
end)
end
I have been trying this code and am just getting all the details of the photos back like when it was uploaded, the id, and when it was last updated. This is the only bit of help I was finding online however its not getting me as far as I need. https://github.com/activeadmin/activeadmin/wiki/Showing-an-uploaded-image-in-the-form
Any help with this problem would be great. Thank you!