Using Grails Scaffolding for Easy Admin
Last time, I showed you how to use UrlMappings to organize controllers by naming convention. This post builds upon part of that — the custom admin section — so you can quickly set up a simple administration section using Grails built-in scaffolding. In this post, I’ll walk you through the steps necessary to modify the scaffolding templates so you can add a low-level “admin”...
Grails UrlMappings Tricks
Grails allows really easy controller URI setup via UrlMappings. But there is one area where it can be a little frustrating: grouping controllers under a “subpath”. Several examples stand out that have caused frustration: An /api/ path to host just API calls. An /admin/ path where simple scaffolded controllers live for admins. A mobile path (/m/, for example), if you prefer...