smart_tag 0.1.1 → 0.1.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/README.md +22 -2
- data/lib/smart_tag/version.rb +1 -1
- metadata +1 -1
data/README.md
CHANGED
@@ -1,6 +1,8 @@
|
|
1
1
|
# SmartTag
|
2
2
|
|
3
|
-
|
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
|
-
|
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
|
|
data/lib/smart_tag/version.rb
CHANGED