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
- Host: GitHub
- URL: https://github.com/apsislabs/administrate-field-acts_as_taggable
- Owner: apsislabs
- License: mit
- Created: 2019-05-07T19:38:37.000Z (about 6 years ago)
- Default Branch: master
- Last Pushed: 2021-05-25T03:05:50.000Z (about 4 years ago)
- Last Synced: 2025-03-25T07:41:38.403Z (2 months ago)
- Language: Ruby
- Size: 15.6 KB
- Stars: 5
- Watchers: 5
- Forks: 11
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE.md
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
[](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.