Class: Renalware::Patients::PrimaryCarePhysicianController
- Inherits:
-
BaseController
- Object
- ApplicationController
- ApplicationController
- BaseController
- Renalware::Patients::PrimaryCarePhysicianController
- Defined in:
- app/controllers/renalware/patients/primary_care_physician_controller.rb
Instance Method Summary collapse
Methods inherited from BaseController
Instance Method Details
#edit ⇒ Object
10 11 12 13 |
# File 'app/controllers/renalware/patients/primary_care_physician_controller.rb', line 10 def edit patient render_form end |
#update ⇒ Object
15 16 17 18 19 20 21 22 23 |
# File 'app/controllers/renalware/patients/primary_care_physician_controller.rb', line 15 def update patient if update_patient redirect_to patient_path(patient), notice: "GP changed successfully" else flash[:error] = "The patient's GP was not changed" redirect_to patient_path(patient) end end |