Skip to content

tuliang/smart_tag

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

71 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

SmartTag

Tag-it: a jQuery UI plugin

https://github.com/aehlke/tag-it

Installation

Add this line to your application's Gemfile:

gem 'smart_tag'

And then execute:

$ bundle

Or install it yourself as:

$ gem install smart_tag

Usage

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' } %>

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

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published