Last updated by alxndrsn 1 year ago
ActsAsTaggable Plugin
You might want to look at the Grails Taggable plugin, as it seems to have been updated more recently.This plugin adds the RoR "acts_as_taggable" ability to domain classes.The domain class just needs to implement the Taggable interface, then it has the methods below:
class Book implements Taggable { … }def book = new Book() … book.save() … book.addTag( "java") book.addTag( "groovy") book.addTag( "grails")assertEquals( "java groovy grails", book.tags)book.removeTag( "groovy")assertEquals( "java grails", book.tags)book.tags = "java groovy" book.removeTag("java")assertEquals( "groovy", book.tags)



