A small gem for putting bootstrap-switch into the Rails asset pipeline
Clone or download
Latest commit 8d94e16 Jul 12, 2018
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
lib version bump v3.3.4 Jul 12, 2018
vendor/assets version bump v3.3.4 Jul 12, 2018
.gitignore update to v1.3 of bootstrap-switch May 16, 2013
Gemfile initial commit Mar 20, 2013
LICENSE.txt initial commit Mar 20, 2013
README.md version bump v3.3.4 Jul 12, 2018
Rakefile initial commit Mar 20, 2013
bootstrap-switch-rails.gemspec fixes new domain Apr 19, 2016
update_from_vendor.sh version bump v3.3.4 Jul 12, 2018

README.md

bootstrap-switch-rails Gem Version

bootstrap-switch-rails provides the bootstrap-switch plugin as a Rails engine to use it within the asset pipeline.

Installation

Add this to your Gemfile:

gem "bootstrap-switch-rails"

and run bundle install.

Usage

In your application.js, include the following:

//= require bootstrap-switch

In your application.css, include the following:

/*
 * for bootstrap3
 *= require bootstrap3-switch
 *
 * or for bootstrap2
 *= require bootstrap2-switch
 */

 *= require bootstrap-switch

or in any SASS file, include the following:

/* for bootstrap3 */
@import "bootstrap3-switch";
/* or for bootstrap2 */
@import "bootstrap2-switch";

Examples

See the demo page for examples how to use the plugin

License

Contributing

  1. Fork it
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Add some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create new Pull Request