ruby on rails - how to add an upload button to active admin -
i trying add button call popup windows upload file on server. looking paperclip alternative without need use image preprocessor.
user flow going next: - log in active admin - click create new photo - pick photo using file picker (a place stuck) - upload selected picture onto cloudinary or similar it.
i use paperclip afraid require many other dependencies on production server. advice, friend?
the simplest solution can think of looks this:
activeadmin.register user form :html => { :multipart => true } |f| f.inputs "upload" f.input :image, :type => :file end f.actions end end
maybe missed multipart attribute? nevertheless, i'd suggest take @ carriverwave (https://github.com/carrierwaveuploader/carrierwave).
if not helping @ all, please post code examples. make easier others provide useful feedback.
Comments
Post a Comment