Class: AutocompleteController

Inherits:
ApplicationController
  • Object
show all
Defined in:
app/controllers/autocomplete_controller.rb

Instance Method Summary collapse

Instance Method Details

#indexObject



2
3
4
5
6
7
8
# File 'app/controllers/autocomplete_controller.rb', line 2

def index
  respond_to do |format|
    format.json {
      render :json => autocomplete_results
    }
  end
end