Class: SharpZones::SharpCitiesController
- Inherits:
-
ApplicationController
- Object
- ActionController::Base
- ApplicationController
- SharpZones::SharpCitiesController
- Defined in:
- app/controllers/sharp_zones/sharp_cities_controller.rb
Instance Method Summary collapse
Instance Method Details
#index ⇒ Object
7 8 9 10 11 12 |
# File 'app/controllers/sharp_zones/sharp_cities_controller.rb', line 7 def index @cities = City.where(province_code: params[:province_code]) respond_to do |format| format.js { render 'sharp_cities/index' } end end |