Class: ConcertoWeather::SearchController
- Inherits:
-
ApplicationController
- Object
- ActionController::Base
- ApplicationController
- ConcertoWeather::SearchController
- Defined in:
- app/controllers/concerto_weather/search_controller.rb
Instance Method Summary collapse
Instance Method Details
#find_city ⇒ Object
3 4 5 6 7 8 9 |
# File 'app/controllers/concerto_weather/search_controller.rb', line 3 def find_city @results = getOpenWeatherCities(params[:q]) respond_to do |format| format.js { render json: @results } end end |