8.3.5 Mapping to Views 5.2.4

(Quick Reference) # 8.3.5 Mapping to Views Version: 5.2.4 ## 8.3.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
    }
Alternatively if you need a view that is specific to a given controller you could use:
    static mappings = {
       "/help"(controller: "site", view: "help") // to a view for a controller
    }
| Quick Reference (hide)