mirror of
https://github.com/iritmaximus/brewery.git
synced 2026-10-12 19:13:49 +03:00
added weather to places
This commit is contained in:
@@ -4,6 +4,8 @@ class PlacesController < ApplicationController
|
||||
|
||||
def search
|
||||
@places = BeermappingApi.places_in(params[:city])
|
||||
@weather = Place.weather params[:city]
|
||||
@city = params[:city]
|
||||
if @places.empty?
|
||||
redirect_to places_path, notice: "No locations in #{params[:city]}"
|
||||
else
|
||||
|
||||
Reference in New Issue
Block a user