Class: Renalware::Clinical::ProfilesController
- Inherits:
-
BaseController
- Object
- ApplicationController
- ApplicationController
- BaseController
- BaseController
- Renalware::Clinical::ProfilesController
- Defined in:
- app/controllers/renalware/clinical/profiles_controller.rb
Instance Method Summary collapse
Methods inherited from BaseController
Methods inherited from BaseController
Instance Method Details
#edit ⇒ Object
16 17 18 19 |
# File 'app/controllers/renalware/clinical/profiles_controller.rb', line 16 def edit patient render locals: { patient: patient } end |
#show ⇒ Object
8 9 10 11 12 13 14 |
# File 'app/controllers/renalware/clinical/profiles_controller.rb', line 8 def show patient render locals: { patient: patient, profile: Clinical::ProfilePresenter.new(patient: patient, params: params) } end |
#update ⇒ Object
21 22 23 24 25 26 27 28 29 |
# File 'app/controllers/renalware/clinical/profiles_controller.rb', line 21 def update patient if update_patient redirect_to patient_clinical_profile_path(patient), notice: t(".success", model_name: "clinical history") else render :edit, locals: { patient: patient } end end |