Set method and action on the search box to something that works so that
authorTom Hughes <tom@compton.nu>
Tue, 20 Oct 2009 23:20:07 +0000 (23:20 +0000)
committerTom Hughes <tom@compton.nu>
Tue, 20 Oct 2009 23:20:07 +0000 (23:20 +0000)
the "Add keyword for..." feature in Fierefox works.

app/views/site/_search.html.erb

index 12b8bccc558e5d10b07e7c56f594cd7f81b32c5e..8e18d0e9713ed56eb15beb57fb169e87b3bb1c15 100644 (file)
@@ -27,7 +27,8 @@
     <div id="search_field">
     <% form_remote_tag(:loading => "startSearch()",
                        :complete => "endSearch()",
-                       :url => { :controller => :geocoder, :action => :search }) do %>
+                       :url => { :controller => :geocoder, :action => :search },
+                       :html => { :method => "get", :action => url_for(:action => "index") }) do %>
       <%= text_field_tag :query, h(params[:query]) %>
       <%= submit_tag t('site.search.submit_text') %>
     <% end %>