Sha256: c4d6d5fbc611cce3492be4aded0cef8dae8f0fca48b31a68ca402025ac0c4a16
Contents?: true
Size: 544 Bytes
Versions: 1
Compression:
Stored size: 544 Bytes
Contents
xml.instruct! xml.OpenSearchDescription('xmlns' => 'http://a9.com/-/spec/opensearch/1.1/', 'xmlns:moz' => 'http://www.mozilla.org/2006/browser/search/') do xml.ShortName Calagator.title xml.Description "Search #{Calagator.title}" xml.InputEncoding 'UTF-8' # The sub call at the end of this line is because we want to use the rails URL helper, but don't want to urlencode the curly braces. xml.Url('type' => 'text/html', 'method' => 'get', 'template' => search_events_url(query: 'searchTerms').sub('searchTerms', '{searchTerms}')) end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
calagator-1.1.0 | app/views/calagator/site/opensearch.xml.builder |