Class: Devise::VerificationController

Inherits:
DeviseController
  • Object
show all
Defined in:
app/controllers/devise/verification_controller.rb

Instance Method Summary collapse

Instance Method Details

#createObject



8
9
10
11
12
13
14
15
16
17
# File 'app/controllers/devise/verification_controller.rb', line 8

def create
  resource.assign_attributes()

  if resource.valid_for_verification? && resource.save
    set_flash_message :notice, :verified
    redirect_to after_verification_path(resource)
  else
    render 'new'
  end
end

#newObject



5
6
# File 'app/controllers/devise/verification_controller.rb', line 5

def new
end