class EmployeeController {
// action1 may be invoked via a POST
// action2 has no restrictions
// action3 may be invoked via a POST or DELETE
def httpMethodRestrictions = [action1:'POST',
action3:['POST', 'DELETE']]
def = action1 { ... }
def = action2 { ... }
def = action3 { ... }
}
The patch has been attached to http://jira.codehaus.org/browse/GRAILS-379.