Method: Devise::ConfirmationsController#create

Defined in:
app/controllers/devise/confirmations_controller.rb

#createObject

POST /resource/confirmation



11
12
13
14
15
16
17
18
19
20
# File 'app/controllers/devise/confirmations_controller.rb', line 11

def create
  self.resource = resource_class.send_confirmation_instructions(params[resource_name])

  if resource.errors.empty?
    set_flash_message :notice, :send_instructions
    redirect_to new_session_path(resource_name)
  else
    render_with_scope :new
  end
end