Class: Renalware::Patients::PracticesController
- Inherits:
-
BaseController
- Object
- ApplicationController
- ApplicationController
- BaseController
- Renalware::Patients::PracticesController
- Defined in:
- app/controllers/renalware/patients/practices_controller.rb
Instance Method Summary collapse
-
#search ⇒ Object
Search for GP Practices matching part of a name.
Methods inherited from BaseController
Instance Method Details
#search ⇒ Object
Search for GP Practices matching part of a name
9 10 11 12 13 14 15 16 |
# File 'app/controllers/renalware/patients/practices_controller.rb', line 9 def search Practice, :search? respond_to do |format| format.json do render json: practices_matching_search_term end end end |