IndexedSearchEngine Question

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.

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

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. :slight_smile:

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

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs