]> git.openstreetmap.org Git - rails.git/blobdiff - app/views/site/_search.html.erb
Set method and action on the search box to something that works so that
[rails.git] / 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 %>