A small gem for putting selectize.js into the Rails asset pipeline
selectize-rails provides the selectize.js plugin as a Rails engine to use it within the asset pipeline.
Add this to your Gemfile:
gem "selectize-rails"
and run
bundle install.
In your
application.js, include the following:
//= require selectize
In your
application.css, include the following:
*= require selectize *= require selectize.default
Or if you like, you could use import instead
@import 'selectize' @import 'selectize.bootstrap3'
To include additional theme's you can replace the
selectize.defaultfor one of the theme files
See the demo page for examples how to use the plugin
| Version | Notes | | ----------:| ----------------------------------------------------------- | | 0.12.6 | Update to v0.12.6 of selectize.js | | 0.12.5 | Update to v0.12.5 of selectize.js | | 0.12.4.1 | Moved css files to scss to be able to use
@import| | 0.12.4 | Update to v0.12.4 of selectize.js | | 0.12.3 | Update to v0.12.3 of selectize.js |
git checkout -b my-new-feature)
git commit -am 'Add some feature')
git push origin my-new-feature)