public function edit($request)
    {
        if (!$this->currentRecord) {
            return $this->httpError(404, "{$this->recordType} not found");
        }
        if (!$this->currentRecord->canEdit()) {
            return $this->httpError(403, "You do not have permission to edit this {$this->recordType}");
        }
        $this->addCrumb('Edit ' . $this->currentRecord->forTemplate());
        return $this;
    }