Switchery for Rails.


Add this line to your application's Gemfile:

gem 'switchery-rails'

And then execute:

$ bundle

Or install it yourself as:

$ gem install switchery-rails

Add the following to your app/assets/javascripts/application.js file:

//= require switchery

And add the following to your app/assets/stylesheets/application.css file:

*= require switchery


Then follow the instructions as described on the Switchery documentation.


  1. Fork it ( https://github.com/YourCursus/switchery-rails/fork )
  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 a new Pull Request