Packages up the JCanvas JavaScript drawing library for the Rails asset pipeline.
Rails: 3.2 and up
jquery-jcanvas-rails 5.5 includes jquery.jcanvas 5.5
Add this line to your application's Gemfile:
gem 'jquery-jcanvas-rails', git: "https://github.com/RobAtHedtek/jquery-jcanvas-rails.git"
And then execute:
$ bundle
Or install it yourself as:
$ gem install jquery-jcanvas-rails
Just add a require 'jcanvas' towards the top of your source in the usual fashion.
For Coffeescript
#= require 'jcanvas'
For JavaScript
//= require 'jcanvas'
- 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