This gem integrates JsBehaviour Toolkit with Rails asset pipeline for ease of use.
https://github.com/DracoBlue/jsb
the latest and greatest 3.0.0
Add this line to your application's Gemfile:
gem 'jsb-rails'
And then execute:
$ bundle
Or install it yourself as:
$ gem install jsb-rails
After bundle the jsb will be added to the asset pipeline. Add the following line to your app/assets/javascripts/application.js
and you're done.
//= require jsb
- Fork it ( https://github.com/[my-github-username]/jsb-rails/fork )
- Create your feature branch (
git checkout -b my-new-feature
) - Commit your changes (
git commit -am 'Add some feature'
) - Push to the branch (
git push origin my-new-feature
) - Create a new Pull Request