[Rails] can't convert Symbol into Integer rails textfieldtag
I am trying to implement the geocoder. When i am trying to include a
search form, i am getting the following error.
TypeError in Locations#index
Showing c:/rails/maps/app/views/locations/index.html.erb where line #4
raised:
can't convert Symbol into Integer
Extracted source (around line #4):
1: <h1>All Locations</h1>
2: <% form_tag locations_path, :method => :get do %>
3: <p>
4: <%= text_field_tag :search, :params[:search] %>
5: <%= submit_tag "search near", :name => nil %>
6: </p>
7: <% end %>
Rails.root: c:/rails/maps
--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
0 Comments:
Post a Comment
Subscribe to Post Comments [Atom]
<< Home