Skip to content

DrawGun/activeadmin-dragonfly

 
 

Repository files navigation

activeadmin-dragonfly

⚠️ Unmaintained ⚠️

Sorry, but I no longer work on ActiveAdmin often enough to justify mantaining this gem. Take it as it is. If you are interested to update and maintain the gem, please let me know! ❤️

Gemfile

gem 'activeadmin-dragonfly', github: 'stefanoverna/activeadmin-dragonfly'

Model

class BlogPost < ActiveRecord::Base
  attr_accessible :image, :retained_image, :remove_image
  image_accessor :image
end

Editor

ActiveAdmin.register BlogPost do
  form do |f|
    # ...
    f.input :image, as: :dragonfly
    f.input :image, as: :dragonfly, input_html: { components: [:preview, :upload, :url, :remove ] }
    # ...
  end
end

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Ruby 93.8%
  • CSS 6.2%