Files
openfoodnetwork/app/controllers/suburbs_controller.rb

5 lines
138 B
Ruby

class SuburbsController < ActionController::Base
def index
@suburbs = Suburb.matching(params[:term]).order(:name).limit(8)
end
end