         $rootScope.error = true
         $rootScope.errorMessage = data.detail
 
-    resource.getTaskCards(1, 1).then(onSuccess, onError)
+    tripId = $routeParams.tripId
+    taskId = $routeParams.taskId
+
+    resource.getTaskCards(tripId, taskId).then(onSuccess, onError) if taskId and tripId
     return
 
 CommentController = ($scope)->

    resource.getUser($rootScope.userid).then (result) ->
        $scope.user = result

    return

TripsController = ($scope, $rootScope, resource) ->
    return

TripListController = ($scope, $rootScope, resource) ->


    return

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