aboutsummaryrefslogtreecommitdiff
path: root/app/controllers
diff options
context:
space:
mode:
Diffstat (limited to 'app/controllers')
-rw-r--r--app/controllers/backends/terraform_aws_controller.rb2
-rw-r--r--app/controllers/backends/terraform_libvirt_controller.rb2
2 files changed, 2 insertions, 2 deletions
diff --git a/app/controllers/backends/terraform_aws_controller.rb b/app/controllers/backends/terraform_aws_controller.rb
index 004f601..ab9b323 100644
--- a/app/controllers/backends/terraform_aws_controller.rb
+++ b/app/controllers/backends/terraform_aws_controller.rb
@@ -77,7 +77,7 @@ class Backends::TerraformAwsController < ApplicationController
flash[:error] = "Unknown action #{action}"
end
- render 'show'
+ redirect_to terraform_aws_backend_path(@backend)
end
private
diff --git a/app/controllers/backends/terraform_libvirt_controller.rb b/app/controllers/backends/terraform_libvirt_controller.rb
index 3a69b5b..4421146 100644
--- a/app/controllers/backends/terraform_libvirt_controller.rb
+++ b/app/controllers/backends/terraform_libvirt_controller.rb
@@ -79,7 +79,7 @@ class Backends::TerraformLibvirtController < ApplicationController
flash[:error] = "Unknown action #{action}"
end
- render 'show'
+ redirect_to terraform_libvirt_backend_path(@backend)
end
private