class EcCitiesController < ApplicationController def index if params[:city] getBrandsInCityByName(params[:city]) else redirect_to('') end end end