Class: Renalware::Virology::ProfilesController
- Inherits:
-
BaseController
- Object
- ApplicationController
- ApplicationController
- BaseController
- BaseController
- Renalware::Virology::ProfilesController
- Defined in:
- app/controllers/renalware/virology/profiles_controller.rb
Instance Method Summary collapse
Methods inherited from BaseController
Instance Method Details
#edit ⇒ Object
8 9 10 11 12 |
# File 'app/controllers/renalware/virology/profiles_controller.rb', line 8 def edit profile = find_profile profile render_edit(profile: profile) end |
#update ⇒ Object
14 15 16 17 18 19 20 21 22 |
# File 'app/controllers/renalware/virology/profiles_controller.rb', line 14 def update profile = find_profile profile if update_profile(profile) redirect_to patient_virology_dashboard_path(patient) else render_edit(profile: profile) end end |