Sha256: e68677ce7a4584047a9217c778a256990286caa937e848d57840a667ae485858

Contents?: true

Size: 1.51 KB

Versions: 3

Compression:

Stored size: 1.51 KB

Contents

# Administrate::Field::ActsAsTaggable

An [Administrate](https://github.com/thoughtbot/administrate) field for supporting [ActsAsTaggableOn](https://github.com/mbleigh/acts-as-taggable-on).

## Usage

Add this line to your application's Gemfile:

```ruby
gem 'administrate-field-acts_as_taggable'
```

Then, in your dashboard, configure your `ActsAsTaggable` attribute with `Field::ActsAsTaggable`:

```ruby

# models/post.rb
class Post < ActiveRecord::Base
  acts_as_taggable_on :categories
end

# dashboards/post_dashboard.rb
class PostDashboard < Administrate::BaseDashboard
  # ATTRIBUTE_TYPES
  ATTRIBUTE_TYPES = {
    name: Field::String,
    content: Field::Text,
    categories: Field::ActsAsTaggable
  }.freeze
end
```

## Development

### Tests

Run `rspec` to run the tests.

### Documentation

To generate documentation run `yard`. To view undocumented files run `yard stats --list-undoc`.

## Contributing

Bug reports and pull requests are welcome on GitHub at https://github.com/apsislabs/administrate-field-acts_as_taggable.

## License

The gem is available as open source under the terms of the [MIT License](http://opensource.org/licenses/MIT).

---

# Built by Apsis

[![apsis](https://s3-us-west-2.amazonaws.com/apsiscdn/apsis.png)](https://www.apsis.io)

`Administrate::Field::ActsAsTaggable` was built by Apsis Labs. We love sharing what we build! Check out our [other libraries on Github](https://github.com/apsislabs), and if you like our work you can [hire us](https://www.apsis.io/work-with-us/) to build your vision.

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
administrate-field-acts_as_taggable-0.0.4 README.md
administrate-field-acts_as_taggable-0.0.3 README.md
administrate-field-acts_as_taggable-0.0.2 README.md