|
|
|
@ -37,7 +37,7 @@ class Jurisprudence::DoctrinesController < ApplicationController |
|
|
|
def destroy |
|
|
|
def destroy |
|
|
|
respond_to do |format| |
|
|
|
respond_to do |format| |
|
|
|
if @doctrine.destroy |
|
|
|
if @doctrine.destroy |
|
|
|
format.html { redirect_to subject_indexes_path, notice: "Doctrine was successfully destroyed." } |
|
|
|
format.html { redirect_to document_path(@jurisprudence), notice: "Doctrine was successfully destroyed." } |
|
|
|
else |
|
|
|
else |
|
|
|
format.html { redirect_to document_path(@jurisprudence), alert: @doctrine.errors.full_messages } |
|
|
|
format.html { redirect_to document_path(@jurisprudence), alert: @doctrine.errors.full_messages } |
|
|
|
end |
|
|
|
end |
|
|
|
|