CHAPTER 13Scaffolding

In construction, scaffolding is a temporary framework that supports workers and their working materials while a building is under construction or repair. In Grails, the term has a slightly different meaning. Scaffolding in Grails means generating artifacts (controllers and views) that satisfy a set of requirements. An example of a common requirement is the ability to perform CRUD operations on a domain class. By using scaffolding, you can generate the necessary controllers and views to perform such common tasks.

Scaffolding can be either static or dynamic, and it's important to understand the difference between the two. Both types of scaffolding generate the exact same code. The main difference is that in static scaffolding ...

Get Groovy and Grails Recipes now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.