steve
July 17, 2006, 3:39am
#1
Good evening –
I’m really new to Rails and I was looking for a way to use
IndexedSearchEngine with a “get” call instead of the default “post”. I
have the script by itself on a page /myapp/app/view/search/rhtml and I
want to be able to bookmark the query string.
I can’t seem to find where in the code the call to form_tag is. This is
as likely as not a terribly stupid question but like I said I’m -really-
new. Any help would be greatly appreciated.
steve
July 17, 2006, 3:57am
#2
Hey -
use the :method => :get, ala
<%= form_tag({:action => ‘results’}, :method => :get) %>
This mailing, nicely searched with Nabble (), is a great resource as
many questions have been asked before.
http://www.nabble.com/RubyOnRails-Users-f13831.html
cheers,
Jodi
steve
July 17, 2006, 4:40am
#3
I actually tried that, but it seems to break the search function. The
partial that actually preforms the search is here:
Search
<%= image_tag
'/engine_files/indexed_search_engine/images/search_spinner.gif', :id =>
'search_spinner', :style => "display:none" %>
<%= link_to_function(
image_tag('/engine_files/indexed_search_engine/images/clear.gif',
:id => 'search_hide'),
"Element.hide('result_list');document.getElementById('search').value=''",
:class => 'search_link')
%>
<%= text_field_tag 'search', nil, :id => 'search', :size => 10 %>
<%= observe_field 'search', search_options %>
There is nothing anywhere that indicates that form_tag is actually being
called. Thanks for the continued help and the link to Nabble.
Jodi S. wrote:
Hey -
use the :method => :get, ala
<%= form_tag({:action => ‘results’}, :method => :get) %>
This mailing, nicely searched with Nabble (), is a great resource as
many questions have been asked before.
http://www.nabble.com/RubyOnRails-Users-f13831.html
cheers,
Jodi