Simple search form passing the searched string through GET
- by Brian Roisentul
Hi,
I'd like my Search form to return the following url after submit:
/anuncios/buscar/the_text_I_searched
My form is the following:
<% form_for :announcement, :url => search_path(:txtSearch) do |f| %>
<div class="searchBox" id="basic">
<%= text_field_tag :txtSearch, params[:str_search].blank? ? "Buscá tu…