summaryrefslogtreecommitdiff
path: root/app/controllers
diff options
context:
space:
mode:
authorStefan Wintermeyer <stefan.wintermeyer@amooma.de>2012-12-30 15:48:03 +0100
committerStefan Wintermeyer <stefan.wintermeyer@amooma.de>2012-12-30 15:48:03 +0100
commitcaf624f11f7de44289b3c994fc72cc5e32ed799e (patch)
treef1512373f5652467285a7f39622d12dedd4112a2 /app/controllers
parentf85bb3c49ee0bac3be836628685fe080da78e823 (diff)
Fixed a broken from.
Diffstat (limited to 'app/controllers')
-rw-r--r--app/controllers/user_groups_controller.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/controllers/user_groups_controller.rb b/app/controllers/user_groups_controller.rb
index 158abaa..64e7136 100644
--- a/app/controllers/user_groups_controller.rb
+++ b/app/controllers/user_groups_controller.rb
@@ -19,7 +19,7 @@ class UserGroupsController < ApplicationController
def create
@user_group = @parent.user_groups.build(params[:user_group])
if @user_group.save
- redirect_to @user_group, :notice => t('user_groups.controller.successfuly_created')
+ redirect_to [@parent, @user_group], :notice => t('user_groups.controller.successfuly_created')
else
render :new
end