An open API service indexing awesome lists of open source software.

https://github.com/apsislabs/administrate-field-acts_as_taggable

An Administrate field for managing ActsAsTaggableOn fields
https://github.com/apsislabs/administrate-field-acts_as_taggable

Last synced: about 2 months ago
JSON representation

An Administrate field for managing ActsAsTaggableOn fields

Awesome Lists containing this project

README

        

# 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.