Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/cristianbica/cropper-rails
https://github.com/cristianbica/cropper-rails
Last synced: 7 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/cristianbica/cropper-rails
- Owner: cristianbica
- Created: 2015-12-15T07:59:14.000Z (almost 9 years ago)
- Default Branch: master
- Last Pushed: 2016-06-27T11:06:11.000Z (over 8 years ago)
- Last Synced: 2024-11-02T10:33:52.504Z (14 days ago)
- Language: Ruby
- Size: 27.3 KB
- Stars: 7
- Watchers: 2
- Forks: 3
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Cropper::Rails
[Jquery Cropper](https://github.com/fengyuanchen/cropper) for Rails assets pipeline.
## Installation
This gem packs [cropper](https://github.com/fengyuanchen/cropper) (jquery version) and makes it available for rails assets pipeline. Add this gem and jquery-rails to your application's Gemfile:
```ruby
gem 'jquery-rails'
gem 'cropper-rails'
```And then run `bundle install`.
Next add jquery and cropper to your assets:
`app/assets/javascripts/application.js`
```javascript
//= require jquery
//= require cropper
````app/assets/javascripts/application.css`
```css
/*
*= require jquery
*= require cropper
*/
```## Usage
Read more about usage [here](https://github.com/fengyuanchen/cropper#getting-started)
## Contributing
1. Fork it
2. Create your feature branch (`git checkout -b my-new-feature`)
3. Commit your changes (`git commit -am 'Added some feature'`)
4. Push to the branch (`git push origin my-new-feature`)
5. Create new Pull Request