Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

A small gem for putting bootstrap-switch into the Rails asset pipeline

branch: master
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 of Mattia Larentis for examples how to use the plugin

Changes

Version Notes
3.0.0 Update to v3.0.0 of the bootstrap-switch plugin
2.0.2 Fixed issue where bootstrap 2 sass wasn't compiling (issue #7)
2.0.1 Update to v2.0.1 of the bootstrap-switch plugin
2.0.0 Update to v2.0 of the bootstrap-switch plugin
1.9.0 Update to v1.9 of the bootstrap-switch plugin
1.8.0 Update to v1.8 of the bootstrap-switch plugin
1.4.0 Update to v1.4 of the bootstrap-switch plugin and make version equal to the plugin
0.1.1 Update to v1.3 of the bootstrap-switch plugin
0.1.0 Initial release

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
Something went wrong with that request. Please try again.