caf_text now working

redirects working for company now - although the overall structure is not clear in the app or in my mind
This commit is contained in:
2023-02-21 06:02:08 +00:00
parent 3b53f930be
commit a35b656cf3
4 changed files with 9 additions and 11 deletions

View File

@@ -26,7 +26,7 @@ class CafsController < ApplicationController
respond_to do |format|
if @caf.save
format.html { redirect_to caf_url(@caf), notice: "Caf was successfully created." }
format.html { redirect_to company_caf_url(@caf.company_id,@caf.id), notice: "Caf was successfully created." }
format.json { render :show, status: :created, location: @caf }
else
format.html { render :new, status: :unprocessable_entity }