GrailsInAction / graina2

Source code for the 2nd edition of Grails in Action
90 stars 93 forks source link

`random` action should not be a closure property #137

Open pledbrook opened 8 years ago

pledbrook commented 8 years ago

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.