Class: PasswordsController
- Inherits:
-
ApplicationController
- Object
- ApplicationController
- PasswordsController
- Defined in:
- app/controllers/passwords_controller.rb
Instance Method Summary collapse
-
#edit ⇒ Object
From for user to update password.
-
#update ⇒ Object
Update user’s password.
Instance Method Details
#edit ⇒ Object
From for user to update password
11 12 13 |
# File 'app/controllers/passwords_controller.rb', line 11 def edit # edit.html.erb end |
#update ⇒ Object
Update user’s password
16 17 18 19 20 21 22 |
# File 'app/controllers/passwords_controller.rb', line 16 def update if user.update(password_params) redirect_to new_session_path, notice: t(".notice") else render :edit, status: :unprocessable_entity end end |