When we rewrite the QuoteController to use the service, we revert back to a closure property for the action rather than leave it as a method. This apparently breaks the ajaxRandom action added later in some versions of Grails, at least so it seems from this thread.
Anyway, it's the code fragment on page 26 immediately after listing 1.4.
When we rewrite the
QuoteController
to use the service, we revert back to a closure property for the action rather than leave it as a method. This apparently breaks theajaxRandom
action added later in some versions of Grails, at least so it seems from this thread.Anyway, it's the code fragment on page 26 immediately after listing 1.4.