diff --git a/app/controllers/origami/commissioners_controller.rb b/app/controllers/origami/commissioners_controller.rb index 091fd166..ae107ecf 100644 --- a/app/controllers/origami/commissioners_controller.rb +++ b/app/controllers/origami/commissioners_controller.rb @@ -1,5 +1,5 @@ class Origami::CommissionersController < BaseOrigamiController - # before_action :set_commissioner, only: [:show, :edit, :update, :destroy] + before_action :set_commissioner, only: [:show, :edit, :update, :destroy] # GET /commissioners # GET /commissioners.json @@ -29,7 +29,7 @@ class Origami::CommissionersController < BaseOrigamiController @commissioner.created_by = current_user.id respond_to do |format| if @commissioner.save - format.html { redirect_to @commissioner, notice: 'Commissioner was successfully created.' } + format.html { redirect_to origami_commissioners_path , notice: 'Commissioner was successfully created.' } format.json { render :show, status: :created, location: @commissioner } else format.html { render :new } @@ -43,7 +43,7 @@ class Origami::CommissionersController < BaseOrigamiController def update respond_to do |format| if @commissioner.update(commissioner_params) - format.html { redirect_to @commissioner, notice: 'Commissioner was successfully updated.' } + format.html { redirect_to origami_commissioner_path(@commissioner) , notice: 'Commissioner was successfully updated.' } format.json { render :show, status: :ok, location: @commissioner } else format.html { render :edit } @@ -57,7 +57,7 @@ class Origami::CommissionersController < BaseOrigamiController def destroy @commissioner.destroy respond_to do |format| - format.html { redirect_to commissioners_url, notice: 'Commissioner was successfully destroyed.' } + format.html { redirect_to origami_commissioners_path , notice: 'Commissioner was successfully destroyed.' } format.json { head :no_content } end end diff --git a/app/views/layouts/_header.html.erb b/app/views/layouts/_header.html.erb index 364f8af2..d4062d26 100644 --- a/app/views/layouts/_header.html.erb +++ b/app/views/layouts/_header.html.erb @@ -28,7 +28,7 @@