This gem packages the SelectBoxIt assets (JavaScripts and stylesheets) for the Rails 3.1+ asset pipeline.
Add this line to your application's Gemfile
:
gem 'selectboxit-rails', group: 'assets'
And then execute:
$ bundle
Or install it globally:
$ gem install selectboxit-rails
To require all SelectBoxIt modules, add the following to your application.js:
//= require jquery.selectBoxIt
Also add the SelectBoxIt CSS to your application.css:
/*
*= require jquery.selectBoxIt
*/
If you only want to use specific modules you can require just these. Dependencies are automatically resolved.
For example, if you only need the mobile module, add this to your application.js:
//= require jquery.selectBoxIt.mobile
- Fork it
- 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 new Pull Request