summaryrefslogtreecommitdiff
path: root/app/controllers/gateway_settings_controller.rb
diff options
context:
space:
mode:
authorspag <spag@golwen.net>2013-01-14 00:11:30 +0100
committerspag <spag@golwen.net>2013-01-14 00:11:30 +0100
commit7aac2daa0010293fc27e96f4f767d82ab88abea6 (patch)
tree1bde80d1cee39ae7f437133f13ec4f600febb700 /app/controllers/gateway_settings_controller.rb
parent19a2a280765df3118e46f943628a378f1a4984ba (diff)
redirect to gateway view
Diffstat (limited to 'app/controllers/gateway_settings_controller.rb')
-rw-r--r--app/controllers/gateway_settings_controller.rb6
1 files changed, 3 insertions, 3 deletions
diff --git a/app/controllers/gateway_settings_controller.rb b/app/controllers/gateway_settings_controller.rb
index 5d9f7e5..4d19b35 100644
--- a/app/controllers/gateway_settings_controller.rb
+++ b/app/controllers/gateway_settings_controller.rb
@@ -16,7 +16,7 @@ class GatewaySettingsController < ApplicationController
def create
@gateway_setting = @gateway.gateway_settings.build(params[:gateway_setting])
if @gateway_setting.save
- redirect_to [@gateway, @gateway_setting], :notice => t('gateway_settings.controller.successfuly_created')
+ redirect_to @gateway, :notice => t('gateway_settings.controller.successfuly_created')
else
render :new
end
@@ -29,7 +29,7 @@ class GatewaySettingsController < ApplicationController
def update
@gateway_setting = @gateway.gateway_settings.find(params[:id])
if @gateway_setting.update_attributes(params[:gateway_setting])
- redirect_to [@gateway, @gateway_setting], :notice => t('gateway_settings.controller.successfuly_updated')
+ redirect_to @gateway, :notice => t('gateway_settings.controller.successfuly_updated')
else
render :edit
end
@@ -38,6 +38,6 @@ class GatewaySettingsController < ApplicationController
def destroy
@gateway_setting = @gateway.gateway_settings.find(params[:id])
@gateway_setting.destroy
- redirect_to gateway_gateway_settings_path(@gateway), :notice => t('gateway_settings.controller.successfuly_destroyed')
+ redirect_to gateway_path(@gateway), :notice => t('gateway_settings.controller.successfuly_destroyed')
end
end