Commit 9d05f8cb by Thanh Hung Pham

fix

parent e68e20e4
......@@ -3,7 +3,7 @@ class ConfirmationsController < Devise::ConfirmationsController
@user = User.find(params[:user][:id])
if @user.save
set_flash_message!(:notice, :confirmed)
redirect_to edit_user_registration_path(resource_name, resource)
redirect_to root_path
else
respond_with_navigational(resource.errors, status: :unprocessable_entity){ render :new }
end
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment