passing method to query when no controller is found