Tag-it: a jQuery UI plugin
https://github.com/aehlke/tag-it
Add this line to your application's Gemfile:
gem 'smart_tag'
And then execute:
$ bundle
Or install it yourself as:
$ gem install smart_tag
Add this line to your application's app/assets/javascripts/application.js:
//= require jquery.ui.all
//= require smart_tag/tag-it.min
//= require smart_tag/smart_tag.min
Add this line to your application's app/assets/stylesheets/application.css:
/*
*= require jquery.ui.all
*= require smart_tag/jquery.tagit
*/
Add 'smart_tag' class to your collection_select's:
<%= f.collection_select method, collection, value_method, text_method, options = {},{ :class => 'smart_tag' } %>
- Fork it
- 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 new Pull Request