No commit activity in last 3 years
No release in over 3 years
Improved tag management for Administrate
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

~> 12.3
~> 3.7

Runtime

 Project Readme

Administrate::Field::ActsAsTaggable

An Administrate field for supporting ActsAsTaggableOn.

Usage

Add this line to your application's Gemfile:

gem 'administrate-field-acts_as_taggable'

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

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


Built by Apsis

apsis

Administrate::Field::ActsAsTaggable was built by Apsis Labs. We love sharing what we build! Check out our other libraries on Github, and if you like our work you can hire us to build your vision.