As far as I know, if I want to create an action in a controller then I can do it by:
class My Controller {
def myAction = {
println \"in my action \"
Leveraging methods instead of actions(Closure properties) has some advantages:
Please visit following link for more information.
Grails controllers