def destroy
      activity = find_activity
      activity.destroy

      respond_to do |format|
        format.js do
          render :destroy, locals: { activity_guid: activity.guid }
        end
      end
    end
def destroy
      activity = find_activity
      activity.destroy

      respond_to do |format|
        format.js do
          render :destroy, locals: { activity_guid: activity.guid }
        end
      end
    end
DELETE /activities/1