From 2a84871de6551256ca6c421708dce9fc8fdb8102 Mon Sep 17 00:00:00 2001 From: Tom Hughes Date: Fri, 30 Dec 2011 22:37:11 +0000 Subject: [PATCH] Serve OpenSearch definition though the assets pipeline --- {public => app/assets}/opensearch/osm.xml | 0 app/views/layouts/_head.html.erb | 2 +- 2 files changed, 1 insertion(+), 1 deletion(-) rename {public => app/assets}/opensearch/osm.xml (100%) diff --git a/public/opensearch/osm.xml b/app/assets/opensearch/osm.xml similarity index 100% rename from public/opensearch/osm.xml rename to app/assets/opensearch/osm.xml diff --git a/app/views/layouts/_head.html.erb b/app/views/layouts/_head.html.erb index 3ddb73551..6e876e166 100644 --- a/app/views/layouts/_head.html.erb +++ b/app/views/layouts/_head.html.erb @@ -10,7 +10,7 @@ <%= favicon_link_tag "favicon.ico" %> <%= tag("link", { :rel => "publisher", :href => "https://plus.google.com/111953119785824514010" }) %> - <%= tag("link", { :rel => "search", :type => "application/opensearchdescription+xml", :title => "OpenStreetMap Search", :href => "/opensearch/osm.xml" }) %> + <%= tag("link", { :rel => "search", :type => "application/opensearchdescription+xml", :title => "OpenStreetMap Search", :href => asset_path("osm.xml") }) %> <%= tag("meta", { :name => "description", :content => "OpenStreetMap is the free wiki world map." }) %> <%= style_rules %> <%= yield :head %> -- 2.43.2