Sha256: f4997b02876d0358b309793535a96f635340e358dfc3070b058207cda38835c7
Contents?: true
Size: 1.43 KB
Versions: 3
Compression:
Stored size: 1.43 KB
Contents
# Cropper for Rails [![Gem Version](https://badge.fury.io/rb/cropper_rails.svg)](https://badge.fury.io/rb/cropper_rails) [![Maintenance](https://img.shields.io/badge/Maintained%3F-yes-green.svg)](https://github.com/d1ceward/jquery-cropper-rails/graphs/commit-activity) [Cropper.js](https://github.com/fengyuanchen/cropperjs) is simple javaScript image cropper. [jQuery Cropper](https://github.com/fengyuanchen/jquery-cropper) is a jQuery plugin wrapper for Cropper.js. The `cropper_rails` gem integrates the `Cropper.js` library and `jQuery Cropper` plugin with the Rails asset pipeline. ## Installation ### Install cropper_rails gem Add `cropper_rails` to your Gemfile and run `bundle install`: ```ruby gem 'cropper_rails' ``` ### Include cropper_rails javascript assets Add the following to your `app/assets/javascripts/application.js`: ```js //= require cropper //= require jquery-cropper ``` ### Include cropper_rails stylesheet assets Add to your `app/assets/stylesheets/application.css`: ```css *= require cropper ``` ## Contributing Bug reports and pull requests are welcome on GitHub at https://github.com/d1ceward/cropper_rails. By contributing you agree to abide by the Code of Merit. ## Code of Conduct Everyone interacting in the cropper_rails project’s codebases, issue trackers, chat rooms and mailing lists is expected to follow the [code of conduct](https://github.com/d1ceward/cropper_rails/blob/master/CODE_OF_CONDUCT.md).
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
cropper_rails-1.2.1 | README.md |
cropper_rails-1.2.0 | README.md |
cropper_rails-1.1.6 | README.md |