Thanks for you reply. I thought this topic is dead.
I understand the concept. However, I don't understand this particular mechanic for how this is written in Grails.
Normally, the View POST back the values to the Controller. The Controller will get the values from the params variable.
save() {
def myFirstName = params.firstName
}
I have been seeing a save() function with an argument. I don't understand this syntax. What and where do you enter this "userInfo"? What is the syntax?
save(userInfo) {
def myFirstName = userInfo.firstName
}