I am trying to use the chain function to call another method and create a unified model. So I call chain :
Controller: emailToNotify, method: sendEmailConfirmation
if (someCommandObject.hasErrors()) chain(controller: "creditProvider", action: "rank", model: [emailToNotify: epnc, somethingToDisplay: "Boom !!!!"])
This is how my rank method ends up in my creditProvider controller:
Controller: creditProvider, action: rank
render (view: 'simulateResult', model: [bim : bam, boom : bimbamboom])
I am unable to call ${emailToNotify} or ${somethingToDisplay} from my simulateResult.gsp view.
I already used chain before, just like it was (and still is) working correctly.
Any idea why the model is not being correctly passed to the view?
Any help is appreciated, as always. All the best,
source share