I am new to dynamic languages and now learning groovy & grails. I am little bit confused on how to write controller actions. In examples, i see two ways of writing actions:
1.
def action(args) {
// do some action and render the result
}
2.
def action = {
// do some action
}
Can anyone explain what is the difference between these two syntax's