Permalink
Browse files

Adding lat and long hidden fields to search form

  • Loading branch information...
1 parent be3fc1c commit acf4a5c444fb718bad0043004afe932ddb9f404f @pat pat committed Sep 29, 2008
Showing with 2 additions and 0 deletions.
  1. +2 −0 app/views/contacts/index.html.erb
View
2 app/views/contacts/index.html.erb
@@ -2,6 +2,8 @@
<% form_tag "", :method => :get do -%>
<p>
+ <%= hidden_field_tag :lat %>
+ <%= hidden_field_tag :lon %>
<%= text_field_tag :search, params[:search] %>
<%= select_tag :state_id,
options_from_collection_for_select(@states, "id", "name", params[:state_id].to_i) %>

0 comments on commit acf4a5c

Please sign in to comment.