Sha256: 5357aac0b8bbed834f91f35e7387b75902c90043d62128fd1574f422a0d424cd

Contents?: true

Size: 658 Bytes

Versions: 1

Compression:

Stored size: 658 Bytes

Contents

## Simple gem for Tags

###Allow add Tags for any model

#####Examples:

Add `gem 'my_tags'` to Gemfile

Add `has_many_tags` for model, which you want to use tags

```
class Post < ActiveRecord::Base
has_many_tags
```

###### Done, ready for using:

post = Post.create(name: 'Post with tags')

post.tags => []

post.tags.count => 0

post.tag_list << 'First tag'

post.tags.count => 1

post.tags.first.delete

post.tags.count => 0


### UI features:

Add to Routes.rb `mount MyTags::Engine, at: "/my_tags"`


Add to your applications.js: `//= require my_tags`

Use `= tags_field_tag(@post)` helpers method in views (it draw input field with autocompete popup)

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
my_tags-0.0.9 README.md