Spent too long with this.
This commit is contained in:
parent
7f2275c40e
commit
d8074f4b62
@ -8,8 +8,12 @@ class SubprincipleitemsController < ApplicationController
|
||||
def update
|
||||
respond_to do |format|
|
||||
if @subprincipleitem.update(subprincipleitem_params)
|
||||
format.html { redirect_to (company_caf_path(@caf.company, @caf) + "#subprincipleitem_#{@subprincipleitem.id}"), notice: "CAF item was updated." }
|
||||
format.json { render :show, status: :ok, location: @company }
|
||||
#redirect_path = helpers.raw("#{company_caf_path(@caf.company, @caf)}/bollox")
|
||||
#format.html { redirect_to company_caf_path(@caf.company, @caf) , html_options: { target: helpers.dom_id(@subprincipleitem) } , notice: "html" }
|
||||
##{company_caf_path(@caf.company, @caf)}#subprincipleitem_#{@subprincipleitem.id} #{helpers.dom_id(@subprincipleitem)}
|
||||
|
||||
#format.json { render :show, status: :ok, location: @company }
|
||||
format.html { render :update }
|
||||
else
|
||||
format.html { render :edit, status: :unprocessable_entity }
|
||||
format.json { render json: @company.errors, status: :unprocessable_entity }
|
||||
|
||||
1
app/views/subprincipleitems/update.html.erb
Normal file
1
app/views/subprincipleitems/update.html.erb
Normal file
@ -0,0 +1 @@
|
||||
Bollox
|
||||
Loading…
x
Reference in New Issue
Block a user