- :url => { :controller => :geocoder, :action => :search }) do %>
- <%= text_field_tag :query, h(params[:query]) %>
+ :url => { :controller => :geocoder, :action => :search },
+ :html => { :method => "get", :action => url_for(:action => "index") }) do %>
+ <%= text_field_tag :query, h(params[:query]), :tabindex => "1" %>
+ <% if params[:action] == 'index' %>
+ <%= hidden_field_tag :minlon %>
+ <%= hidden_field_tag :minlat %>
+ <%= hidden_field_tag :maxlon %>
+ <%= hidden_field_tag :maxlat %>
+ <% end %>