Places imgAreaSelect into the Rails asset pipeline.
This project uses Semantic Versioning and will attempt to account for the underlying imgAreaSelect JavaScript library versioning.
Add this line to your application's Gemfile:
gem 'imgareaselect-rails', '~> 1.0'
And then execute:
$ bundle
In your application.js:
//= require jquery.imgareaselect
In your application.scss
@import 'imgareaselect-default'
or
@import 'imgareaselect-animated'
or
@import 'imgareaselect-deprecated'
On the page you want to use it on include a stylesheet and the JavaScript:
<%= stylesheet_link_tag 'imgareaselect-default' %>
<%= javascript_include_tag 'jquery.imgareaselect' %>
When new versions of imgAreaSelect are released the gem will be updated. If there's no update for the current version, contact me or contribute by updating the library and issuing a pull request.
- Fork it
- Create your feature branch (
git checkout -b my-new-feature
) - Commit your changes (
git commit -am 'Added some feature'
) - Push to the branch (
git push origin my-new-feature
) - Create new Pull Request