This gem provides the JQuery-Switch project found at http://rawnet.github.io/jquery-switch/ for the Rails asset pipeline (available since Rails 3.1).
To make use of this project add the following line to 'app/assets/javascripts/application.js':
//= require jquery-switch
and add the following line to 'app/assets/stylesheets/application.css':
*= require jquery-switch
In your Gemfile, add this line:
gem "jquery-switch-rails", git: "https://github.com/mois3x/jquery-switch-rails"
Then, run bundle install
.
That's it!