bootstrap-switch-rails provides the bootstrap-switch plugin as a Rails engine to use it within the asset pipeline.
Add this to your Gemfile:
gem "bootstrap-switch-rails"
and run bundle install
.
In your application.js
, include the following:
//= require bootstrap-switch
In your application.css
, include the following:
*= require bootstrap-switch
See the demo page of Mattia Larentis for examples how to use the plugin
| Version | Notes |
|---------+---------------------------------------------------------------------------|
| 0.1.1 | Update to v1.3 of the bootstrap-switch plugin |
| 0.1.0 | Initial release |
- The bootstrap-switch plugin is licensed under the Apache License, Version 2.0
- The bootstrap-switch-rails project is licensed under the MIT License
- 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