smart_tag 0.1.1 → 0.1.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. data/README.md +22 -2
  2. data/lib/smart_tag/version.rb +1 -1
  3. metadata +1 -1
data/README.md CHANGED
@@ -1,6 +1,8 @@
1
1
  # SmartTag
2
2
 
3
- TODO: Write a gem description
3
+ Tag-it: a jQuery UI plugin
4
+
5
+ https://github.com/aehlke/tag-it
4
6
 
5
7
  ## Installation
6
8
 
@@ -18,7 +20,25 @@ Or install it yourself as:
18
20
 
19
21
  ## Usage
20
22
 
21
- TODO: Write usage instructions here
23
+ Add this line to your application's app/assets/javascripts/application.js:
24
+ ```js
25
+ //= require jquery.ui.all
26
+ //= require smart_tag/tag-it.min
27
+ //= require smart_tag/smart_tag.min
28
+ ```
29
+
30
+ Add this line to your application's app/assets/stylesheets/application.css:
31
+ ```css
32
+ /*
33
+ *= require jquery.ui.all
34
+ *= require smart_tag/jquery.tagit
35
+ */
36
+ ```
37
+
38
+ Add 'smart_tag' class to your collection_select's:
39
+ ```ruby
40
+ <%= f.collection_select method, collection, value_method, text_method, options = {},{ :class => 'smart_tag' } %>
41
+ ```
22
42
 
23
43
  ## Contributing
24
44
 
@@ -1,3 +1,3 @@
1
1
  module SmartTag
2
- VERSION = "0.1.1"
2
+ VERSION = "0.1.2"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: smart_tag
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.1
4
+ version: 0.1.2
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: