Permalink
Browse files

Fixed devise redirect issue on admin registration

  • Loading branch information...
augustf committed Dec 18, 2012
1 parent 3e9cd06 commit 782eff686d752e745fda5889d579104c8d56ac54
Showing with 3 additions and 2 deletions.
  1. +3 −2 app/controllers/concerto_devise/registrations_controller.rb
@@ -24,7 +24,7 @@ def new
def create
build_resource
- ConcertoConfig.set("send_errors", params[:concerto_config][:send_errors][:value])
+ ConcertoConfig.set("send_errors", params[:concerto_config][:send_errors])
#If there are no users, the first one created will be an admin
if User.all.empty?
first_user_setup = true
@@ -51,7 +51,8 @@ def create
end
else
clean_up_passwords resource
- respond_with resource
+ redirect_to new_user_registration_path
+ #respond_with resource
end
end

0 comments on commit 782eff6

Please sign in to comment.