Sha256: 9eaedf8d04d4f70ef6f95be62a8d66d5b1fe58cfb0e5683dddee84d35155eeef
Contents?: true
Size: 1.43 KB
Versions: 8
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
8 entries across 8 versions & 1 rubygems