Class: ActiveAuthentication::ConfirmationsController
- Inherits:
-
ActiveAuthenticationController
- Object
- ApplicationController
- ActiveAuthenticationController
- ActiveAuthentication::ConfirmationsController
- Defined in:
- app/controllers/active_authentication/confirmations_controller.rb
Instance Method Summary collapse
Instance Method Details
#create ⇒ Object
8 9 10 11 12 13 |
# File 'app/controllers/active_authentication/confirmations_controller.rb', line 8 def create @user = User.find_by unconfirmed_email: params[:email] @user&.send_email_confirmation_instructions redirect_to root_path, notice: t(".success") end |
#new ⇒ Object
5 6 |
# File 'app/controllers/active_authentication/confirmations_controller.rb', line 5 def new end |
#show ⇒ Object
15 16 17 18 19 20 |
# File 'app/controllers/active_authentication/confirmations_controller.rb', line 15 def show @user.confirm sign_in(@user) unless user_signed_in? redirect_to root_url, notice: t(".success") end |