Class: Opensearchkick::OpensearchController
- Inherits:
-
ApplicationController
- Object
- ApplicationController
- Opensearchkick::OpensearchController
- Defined in:
- app/controllers/opensearchkick/opensearch_controller.rb
Instance Method Summary collapse
Instance Method Details
#opensearch ⇒ Object
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 |
#suggestions ⇒ Object
12 13 14 |
# File 'app/controllers/opensearchkick/opensearch_controller.rb', line 12 def suggestions # TODO: add suggestion support end |