Class: CitiesController
- Inherits:
-
ApplicationController
- Object
- ApplicationController
- CitiesController
- Defined in:
- app/controllers/cities_controller.rb
Instance Method Summary collapse
Instance Method Details
#index ⇒ Object
4 5 6 7 8 9 10 11 12 13 14 15 |
# File 'app/controllers/cities_controller.rb', line 4 def index = { }.merge(params[:search]) [:country_id] = 0 if [:country_id].blank? @field_dom_id = params['field_dom_id'] @search = City.search() if @search @cities = @search.all else @cities = [] end end |