Class: Avocado::AffirmationsController
Constant Summary
BaseController::FINDER_PARAMETERS
Instance Method Summary
collapse
Instance Method Details
#create ⇒ Object
13
14
15
16
17
|
# File 'app/controllers/avocado/affirmations_controller.rb', line 13
def create
send_affirmation_email
redirect_to new_session_path,
notice: t(".success")
end
|
#edit ⇒ Object
19
20
|
# File 'app/controllers/avocado/affirmations_controller.rb', line 19
def edit
end
|
#new ⇒ Object
10
11
|
# File 'app/controllers/avocado/affirmations_controller.rb', line 10
def new
end
|
#update ⇒ Object
22
23
24
25
26
|
# File 'app/controllers/avocado/affirmations_controller.rb', line 22
def update
sign_in(@user)
redirect_to root_path,
notice: t(".success")
end
|