Class: Accountly::EmailsController
- Inherits:
-
AccountController
- Object
- Account::AccountController
- AccountController
- Accountly::EmailsController
- Defined in:
- app/controllers/accountly/emails_controller.rb
Instance Method Summary collapse
Instance Method Details
#create ⇒ Object
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 |
#new ⇒ Object
3 4 5 |
# File 'app/controllers/accountly/emails_controller.rb', line 3 def new @change_email_form = ChangeEmailForm.new(current_user) end |