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:
@@ -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 }
|
||||
|
||||
Reference in New Issue
Block a user