search for: setup_params

Displaying 1 result from an estimated 1 matches for "setup_params".

Did you mean: set_params
2006 Mar 07
2
Determine which action, which controller is calling ?
Hello, Is it possible to determine wich :action , wich :controller is calling the function func_test in ApplicationController ? 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 @var = func_test end def