8.4.5 Mapping to Views - Reference Documentation
Authors: Graeme Rocher, Peter Ledbrook, Marc Palmer, Jeff Brown, Luke Daley, Burt Beckwith, Lari Hotari
Version: 3.1.9
8.4.5 Mapping to Views
You can resolve a URL to a view without a controller or action involved. For example to map the root URL/
to a GSP at the location grails-app/views/index.gsp
you could use:static mappings = { "/"(view: "/index") // map the root URL }
static mappings = { "/help"(controller: "site", view: "help") // to a view for a controller }