Class: Renalware::LowClearance::ProfilesController
- Inherits:
-
BaseController
- Object
- ApplicationController
- ApplicationController
- BaseController
- BaseController
- Renalware::LowClearance::ProfilesController
- Defined in:
- app/controllers/renalware/low_clearance/profiles_controller.rb
Instance Method Summary collapse
Methods inherited from BaseController
Instance Method Details
#edit ⇒ Object
8 9 10 |
# File 'app/controllers/renalware/low_clearance/profiles_controller.rb', line 8 def edit render_edit() end |
#update ⇒ Object
12 13 14 15 16 17 18 19 20 21 |
# File 'app/controllers/renalware/low_clearance/profiles_controller.rb', line 12 def update profile = if profile.update_by(current_user, profile_params) redirect_to patient_low_clearance_dashboard_path, notice: t(".success", model_name: "profile") else flash.now[:error] = failed_msg_for("profile") render_edit(profile) end end |