---
src/app/controllers/realms_controller.rb | 8 ++++----
1 files changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/app/controllers/realms_controller.rb
b/src/app/controllers/realms_controller.rb
index bdc6ba9..29124a4 100644
--- a/src/app/controllers/realms_controller.rb
+++ b/src/app/controllers/realms_controller.rb
@@ -45,11 +45,11 @@ class RealmsController < ApplicationController
@realm = FrontendRealm.new(params[:frontend_realm])
if @realm.save
flash[:notice] = "Realm was added."
- redirect_to realms_path and return
+ redirect_to realm_path(@realm)
+ else
+ load_backend_realms
+ render :new
end
-
- load_backend_realms
- render :new
end
def destroy
--
1.7.4.4