Plugins You can find out about all the publicly available Grails plugins.

Acts As Taggable Plugin

  • Authors: null
2 votes
compile ":acts-as-taggable:not provided"



ActsAsTaggable Plugin

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


You should save the domain object before calling the addTag method, because the tag is inserted into the database when the addTag method is called. Thanks to Lucas F. A. Teixeira, who found this undocumented convention.

The source repository is

To install this plugin follow the instructions at, since it is not within the grails plugin list to install online.