Class: ConcertoWeather::SearchController

Inherits:
ApplicationController show all
Defined in:
app/controllers/concerto_weather/search_controller.rb

Instance Method Summary collapse

Instance Method Details

#find_cityObject



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