withForm
Purpose
Used to handle duplicate form submissions.Examples
withForm { // good request }.invalidToken { // bad request }
Description
ThewithForm
method requires the use of the useToken
attribute in a form<g:form useToken="true" ...>
withForm
method to handle valid and invalid requests:withForm { // good request }.invalidToken { // bad request }