aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristopher Baines <mail@cbaines.net>2018-06-23 13:03:04 +0100
committerChristopher Baines <mail@cbaines.net>2018-06-23 21:16:39 +0100
commite78d219f520afd8eb38b28178bbf5148f803fd19 (patch)
tree89891a69e0132d5b98af2b2161e7aa94245cdc4d
parentec1039c336a9b3f796b3d805312f3b2dc0a0157c (diff)
downloadgovuk-mini-environment-admin-e78d219f520afd8eb38b28178bbf5148f803fd19.tar
govuk-mini-environment-admin-e78d219f520afd8eb38b28178bbf5148f803fd19.tar.gz
Change the backend perform action controller
Redirect to the show page, rather than rendering it, to keep the URL more consistent.
-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