Giter Site home page Giter Site logo

zj0713001 / dropzonejs-rails Goto Github PK

View Code? Open in Web Editor NEW

This project forked from ncuesta/dropzonejs-rails

0.0 2.0 0.0 341 KB

Spice your Rails apps with some Dropzone sugar!

Home Page: http://rubygems.org/gems/dropzonejs-rails

License: MIT License

Ruby 8.31% JavaScript 73.51% CSS 18.18%

dropzonejs-rails's Introduction

dropzonejs-rails

Integrate Matias Meno's Dropzone awesome file upload JS library right into the Asset pipeline of your Rails apps.

Version

The latest version of this gem bundles Dropzone v3.12.0.

Installation and usage

First add dropzonejs-rails to your Gemfile and, as you already know, bundle it and then restart your Rails app:

# On your Gemfile
gem 'dropzonejs-rails'
$ bundle install

After that, you need to make dropzone.js available on your pages. To do that, you can add it to your application.js file, like this:

//= require dropzone

And if you would like to use one of the styles bundled with Dropzone, add to your application.css:

*= require dropzone/basic

or

*= require dropzone/dropzone

And Bam! - you're all set.

Issues, Requests, Comments, Poetry

Go to this secret place.

Contributing

  1. Fork,
  2. Hack,
  3. Create a Pull Request.

DO NOT - I repeat - DO NOT bump version numbers. Unless you really need to.

Getting the latest version of Dropzone

  1. Run rake check to see if there is a newer version of Dropzone available.
  2. If 1. tells you to do so, run rake get - it'll download the files four you.

Changelog

  • v0.5.1
    • Moves assets to the app/ directory so that Rails 4 adds them to the Sprockets pipeline. Kudos to @senny for pointing this out.
    • Fixes incorrect references to the old vendor/ directory.

Licence (MIT)

(c) Copyright 2013 José Nahuel Cuesta Luengo

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

dropzonejs-rails's People

Contributors

ncuesta avatar ginter avatar jonaphin avatar

Watchers

James Cloos avatar  avatar

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.