Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Request: Support for Paperclip! #58

Closed
runar opened this issue May 18, 2011 · 5 comments
Closed

Request: Support for Paperclip! #58

runar opened this issue May 18, 2011 · 5 comments

Comments

@runar
Copy link

runar commented May 18, 2011

I'd love to see support for Paperclip!

@gregbell
Copy link
Contributor

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?

@jarinudom
Copy link

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.

@jamsi
Copy link

jamsi commented May 19, 2011

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

@ivanoats
Copy link
Contributor

ivanoats commented Nov 8, 2011

some more tips:

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

@rbq
Copy link

rbq commented Apr 9, 2012

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants