Re: canceling action execution in the controller.

2011-03-29 Thread Sam Sherlock
use a condition within the action and redirect setting a flash message to show feedback to user - S On 29 March 2011 13:37, Michael Iv wrote: > Hi all. I am an noobe here.I want to be able to cancel an action before > its execution.The scenario is as follows. I have a navifgation bar. When

canceling action execution in the controller.

2011-03-29 Thread Michael Iv
Hi all. I am an noobe here.I want to be able to cancel an action before its execution.The scenario is as follows. I have a navifgation bar. When I press a link I check if the current URL is the same as that of the link.If it is I want to prevent the controller to execute the action which renders t