Class: Headstart::ConfirmationsController
- Inherits:
-
ApplicationController
- Object
- ApplicationController
- Headstart::ConfirmationsController
- Defined in:
- app/controllers/headstart/confirmations_controller.rb
Instance Method Summary collapse
Instance Method Details
#create ⇒ Object
16 17 18 19 20 21 22 23 24 |
# File 'app/controllers/headstart/confirmations_controller.rb', line 16 def create @user = ::User.find_by_id_and_confirmation_token( params[:user_id], params[:token]) @user.confirm_email! sign_in(@user) flash_success_after_create redirect_to(url_after_create) end |
#new ⇒ Object
12 13 14 |
# File 'app/controllers/headstart/confirmations_controller.rb', line 12 def new create end |