GithubHelp home page GithubHelp logo

Comments (5)

gregbell avatar gregbell commented on May 22, 2024

What type of support would you like to see? You should be able to build a form which uploads a file currently. What would Active Admin do specifically for Paperclip?

from activeadmin.

jarinudom avatar jarinudom commented on May 22, 2024

Something like lightbox previews for paperclip, dragonfly, and carrierwave attachments would be nice. Probably just bundling a good lightbox plugin and providing a DSL for the thumbnail and original image would work.

from activeadmin.

jamsi avatar jamsi commented on May 22, 2024

Paperclip works just fine with Activeadmin at the moment. I did have to add multiple => true though.

form :html => { :enctype => "multipart/form-data" } do |f|
  f.inputs "Product", :multipart => true do
    f.input :name
    f.input :img
  end    
  f.buttons
end

from activeadmin.

ivanoats avatar ivanoats commented on May 22, 2024

some more tips:

f.input :asset, label: "Attach a file", as: :file

from activeadmin.

rbq avatar rbq commented on May 22, 2024

Is there an easy way to offer a checkbox to remove the attachment? This would be great (doesn't work though):

f.input :delete_asset, label: "Remove the asset", as: :check_box

from activeadmin.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.