Displaying 1 result from an estimated 1 matches for "ationcontrol".
Did you mean:
action_control
2006 Mar 08
7
Function could determine the caller action ?
Is it possible to determine which action call the function ?
In example, func_test in ApplicationController could determine which
action from SiteController is calling her ?
in class ApplicationController I have
def func_test
if ( calling from index )
return "1" end
if ( calling from contact )
return "2" end
end
and in class SiteController
def index...