Class: Accountly::EmailsController

Inherits:
AccountController show all
Defined in:
app/controllers/accountly/emails_controller.rb

Instance Method Summary collapse

Instance Method Details

#createObject



7
8
9
10
11
12
13
14
# File 'app/controllers/accountly/emails_controller.rb', line 7

def create
  @change_email_form = ChangeEmailForm.new(current_user)
  if @change_email_form.submit( params[:change_email_form] )
    redirect_to settings_url, notice: t( ".flash.success" )
  else
    render "new"
  end
end

#newObject



3
4
5
# File 'app/controllers/accountly/emails_controller.rb', line 3

def new
  @change_email_form = ChangeEmailForm.new(current_user)
end