lib/routing.js
function getAction(controllerName, actionName) {
		controllerName = controllerName.camelize();
		var controller = app.controllers[controllerName];
		if (controller === undefined && app.models[controllerName])
			controller = defaultController;

		if (controller)
			return controller[actionName || 'index'];
		else
			return null;
	}
function getAction(controllerName, actionName) {
		controllerName = controllerName.camelize();
		var controller = app.controllers[controllerName];
		if (controller === undefined && app.models[controllerName])
			controller = defaultController;

		if (controller)
			return controller[actionName || 'index'];
		else
			return null;
	}
function getAction ( controllerName , actionName ) { controllerName = controllerName . camelize ( ) ; var controller = app . controllers [ controllerName ] ; if ( controller === undefined && app . models [ controllerName ] ) controller = defaultController ; if ( controller ) return controller [ actionName || 'index' ] ; else return null ; }
Find the action function based on controller name and action name.
If no controller but a model is found, the default controller is taken.
@param  {String} controllerName controller name
@param  {String} actionName     action name
@return {Function}              action function
Find the action function based on controller name and action name . If no controller but a model is found the default controller is taken .