Class: Opensearchkick::OpensearchController

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

Instance Method Summary collapse

Instance Method Details

#opensearchObject



3
4
5
6
7
8
9
10
11
# File 'app/controllers/opensearchkick/opensearch_controller.rb', line 3

def opensearch
  response.headers['Content-Type'] = 'application/opensearchdescription+xml; charset=utf-8'
  @description = Configuration.description
  @contact_email = Configuration.contact_email
  @title = Configuration.default_title
  @url = Configuration.search_url
  @image_path = Configuration.image_path
  respond_to :xml
end

#suggestionsObject



12
13
14
# File 'app/controllers/opensearchkick/opensearch_controller.rb', line 12

def suggestions
  # TODO: add suggestion support
end