RailsCasts Pro episodes are now free!

Learn more or hide this

Venkata Reddy Bhavanam's Profile

GitHub User: Venkat114433

Site: http://peppitools.com

Comments by Venkata Reddy Bhavanam

Avatar

i am getting the following error when trying to add form for search functionality
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: All Locations
2: <%= form_tag locations_path, :method => :get do %>
3:
4: <%= text_field_tag :search, :params[:search] %>
5: <%= submit_tag "search near", :name => nil %>
6:
7: <% end %>
Rails.root: c:/rails/maps