diff options
Diffstat (limited to 'app/controllers/profiles/emails_controller.rb')
-rw-r--r-- | app/controllers/profiles/emails_controller.rb | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/app/controllers/profiles/emails_controller.rb b/app/controllers/profiles/emails_controller.rb index 2c85606c271..3ffe5729c2c 100644 --- a/app/controllers/profiles/emails_controller.rb +++ b/app/controllers/profiles/emails_controller.rb @@ -2,7 +2,7 @@ class Profiles::EmailsController < Profiles::ApplicationController before_action :find_email, only: [:destroy, :resend_confirmation_instructions] def index - @primary = current_user.email + @primary_email = current_user.email @emails = current_user.emails.order_id_desc end @@ -30,6 +30,7 @@ class Profiles::EmailsController < Profiles::ApplicationController else flash[:alert] = "There was a problem sending the confirmation email" end + redirect_to profile_emails_url end |