Section 1.5.1:
This section indicates that all is required to enable scaffolding is to add the following:
static scaffold = true
This is not entirely true
If QuoteController still contains an index() action method, enabling scaffolding via static scaffold = true will result in an empty scaffold list page. To reproduce this, do the following:
Add data to the DB (see section 1.4.2)
Add static scaffold = true to the QuoteContoller.groovy
Leave def index() {} action method inside this controller
You raise a valid point. I think the assumption is that listing 1.1 contains the whole of QuoteController, which doesn't include the index action. But I think a clarification here would help.
Section 1.5.1: This section indicates that all is required to enable scaffolding is to add the following: static scaffold = true This is not entirely true
If QuoteController still contains an index() action method, enabling scaffolding via static scaffold = true will result in an empty scaffold list page. To reproduce this, do the following:
Notice that the scaffolding list page shows no quotes. Remove def index() {} from QuoteController and the list page will work as expected.
I suggest adding a note to section 1.5.1 about removing def index() {}