(Quick Reference)

defaultAction

Purpose

Allows you to explicitly specify the default action that should be executed if no action is specified in the URI.

Examples

class BookController {
    static defaultAction = "list"
    def list = {
        [books:Book.list()]
    }
}