Jcrop (https://github.com/tapmodo/Jcrop) asset bundle for Rails
MIT License
Jcrop asset bundle for Rails >= 3.2.x (jcrop-rails gem looks abandoned)
Add this line to your application's Gemfile:
gem 'jcrop-rails-v2', '~> x.x.x' # where x.x.x latest gem version
Add single line to 'application.css':
/*
*= require jquery.Jcrop
*/
Then add single line to 'application.js':
//= require jquery.Jcrop
That's all. Now you can use Jcrop inside your application.
If you want to use minified JS & CSS versions of Jcrop then just replace
jquery.Jcrop
tojquery.Jcrop.min
in code snippets provided above.
If you want to use Jcrop in specified views only you can include its use the following commands:
<%= stylesheet_link_tag 'jquery.Jcrop' %>
<%= javascript_include_tag 'jquery.Jcrop' %>
git checkout -b my-new-feature
)git commit -am 'Add some feature'
)git push origin my-new-feature
)