Subprincples now have a default of false in the affirmative column.

We do now need to be able to flip that to :true and add the evidence.
This commit is contained in:
2024-04-25 10:22:14 +01:00
parent 175367a189
commit 0a59311f2c
12 changed files with 198 additions and 235 deletions

View File

@@ -39,7 +39,7 @@ class CafsController < ApplicationController
def update
respond_to do |format|
if @caf.update(caf_params)
format.html { redirect_to caf_url(@caf), notice: "Caf was successfully updated." }
format.html { redirect_to company_caf_url(@company, @caf), notice: "Caf was successfully updated." }
format.json { render :show, status: :ok, location: @caf }
else
format.html { render :edit, status: :unprocessable_entity }
@@ -53,7 +53,7 @@ class CafsController < ApplicationController
@caf.destroy
respond_to do |format|
format.html { redirect_to cafs_url, notice: "Caf was successfully destroyed." }
format.html { redirect_to authenticated_root_url, notice: "Caf was successfully destroyed." }
format.json { head :no_content }
end
end