     resource.getUser($rootScope.userid).then (result) ->
         $scope.user = result
 
-    return
-
-TripsController = ($scope, $rootScope, resource) ->
     return
 
 TripListController = ($scope, $rootScope, resource) ->


    return

CardsController = ($scope, $rootScope, resource)->
    onSuccess = (data) ->
        console.log("SUCCESS", data)
        $scope.loadedCards = data._attrs

        $rootScope.error = true
        $rootScope.errorMessage = data.detail

    tripId = $routeParams.tripId
    taskId = $routeParams.taskId

    resource.getTaskCards(tripId, taskId).then(onSuccess, onError) if taskId and tripId
    return

CommentController = ($scope)->
