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 O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.