app/controllers/admin/application_controller.rb
# Autocomplete handler for all admin controllers.
#----------------------------------------------------------------------------
Autocomplete handler for all admin controllers.
Autocomplete handler for all admin controllers .
def auto_complete
    @query = params[:auto_complete_query]
    @auto_complete = klass.text_search(@query).limit(10)
    render :partial => 'auto_complete'
  end
def auto_complete @query = params [ :auto_complete_query ] @auto_complete = klass . text_search ( @query ) . limit ( 10 ) render :partial => 'auto_complete' end
Autocomplete handler for all admin controllers.
Autocomplete handler for all admin controllers .