Chapter 5Beyond Scaffolding

So far, our TekDays application contains six persistent domain classes, three controllers, and twelve views—and all with less than 190 lines of code. Now, Grails uses the Groovy programming language, and Groovy is known for its conciseness, but even in Groovy, this much functionality takes more than 190 lines of code. In fact, it’s Grails’ dynamic scaffolding that is creating all this for us at runtime. Scaffolding is a great feature; we’ve been taking advantage of it to gradually build and tweak our domain model, and all the while we’ve been able to see the effects in our views. However, it’s time to remove the training wheels and start taking control of our code.

Get Grails 2: A Quick-Start Guide 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.