Class: EmailsController

Inherits:
ApplicationController
  • Object
show all
Defined in:
app/controllers/emails_controller.rb

Instance Method Summary collapse

Instance Method Details

#editObject



2
3
# File 'app/controllers/emails_controller.rb', line 2

def edit
end

#updateObject



5
6
7
8
9
10
11
# File 'app/controllers/emails_controller.rb', line 5

def update
  if current_user.update(user_params)
    redirect_to update_redirect_path, notice: 'Email successfully updated'
  else
    render :edit
  end
end