Sha256: 14f3cc87f2de636268543edd9a9a3f7590b02610ff7e618e11ab5da1fb24d10b
Contents?: true
Size: 548 Bytes
Versions: 13
Compression:
Stored size: 548 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
13 entries across 13 versions & 2 rubygems