my search form:
<%= form_tag("/search/index/", :method => "get") do %>
<%= text_field_tag :search, params[:search], :name => 'q' %>
<% end %>
my search controller:
class SearchController < ApplicationController
def index
@query = params[:q]
end
end
current URL: http://localhost:3000/search/index/?utf8=✓3&q=
what i want it to be is http://localhost:3000/search?q=
or at least something similar to this
in your routes.rb just match the search to the index as