I am new to rails. Based on the experience with django, I was too lazy to write the admin panel with my hands and I began to use an active admin. I ran into the problem of loading images. 1) I do not know how to specify the download path 2) I do not know how to download the file. Thank you in advance! here is my code:
ActiveAdmin.register Imgpost do permit_params :title, :image index do column :title column :image actions end filter :title form(:html => { :multipart => true }) do |f| f.inputs "Create new image post", :multipart => true do f.input :title f.input :image, :as => :file end f.actions end end`