Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

activeadmin-dropzone

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

activeadmin-dropzone

  • 0.2.6
  • Rubygems
  • Socket score

Version published
Maintainers
1
Created
Source

activeadmin-dropzone Gem Version

Easy to use integration of drag&drop files upload via dropzone.js for ActiveAdmin.

Requirements

  • ActiveAdmin;
  • Paperclip gem;
  • ActiveRecord;
  • Separate models for file's container and files.

Install

Add line to your Gemfile:

gem 'activeadmin-dropzone', '~> 0.2.1'

Add dropzone to your file container's class:

class Post
    dropzone :images
end

Add dropzone_item to your file's class:

class Image
    dropzone_item
end

Add input to your ActiveAdmin form:

f.input :images, as: :dropzone

Add activeadmin-dropzone to both active_admin.js and active_admin.css files:

//= require activeadmin-dropzone

Configuration

You can customize columns used for upload by passing Hash to the dropzone_item method. Here are the default values:

dropzone_item title: :title, 
              position: :position, 
              data: :data, 
              file_size: :data_file_size, 
              url: :data_url

Contributing to activeadmin-dropzone

  • Check out the latest master to make sure the feature hasn't been implemented or the bug hasn't been fixed yet.
  • Check out the issue tracker to make sure someone already hasn't requested it and/or contributed it.
  • Fork the project.
  • Start a feature/bugfix branch.
  • Commit and push until you are happy with your contribution.
  • Please try not to mess with the Rakefile, version, or history. If you want to have your own version, or is otherwise necessary, that is fine, but please isolate to its own commit so I can cherry-pick around it.

Copyright (c) 2014 Maxim Gladkov. See LICENSE.txt for further details.

FAQs

Package last updated on 28 Feb 2014

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc