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