Sha256: f713cc04516d52a89037f162bbff2cc2e929674559471c8c2643896784ce69df
Contents?: true
Size: 575 Bytes
Versions: 7
Compression:
Stored size: 575 Bytes
Contents
# frozen_string_literal: true 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
7 entries across 7 versions & 2 rubygems