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. -- Posted via http://www.ruby-forum.com/.
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 On 16-Jul-06, at 9:39 PM, Steve wrote:> > > 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. > > > > -- > Posted via http://www.ruby-forum.com/. > _______________________________________________ > Rails mailing list > Rails@lists.rubyonrails.org > http://lists.rubyonrails.org/mailman/listinfo/rails
I actually tried that, but it seems to break the search function. The partial that actually preforms the search is here: <div class=''search_field''> 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'') %> </div> <%= text_field_tag ''search'', nil, :id => ''search'', :size => 10 %> <%= observe_field ''search'', search_options %> <div class=''search_results'' id=''search_results''> </div> There is nothing anywhere that indicates that form_tag is actually being called. Thanks for the continued help and the link to Nabble. :) Jodi Showers 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-- Posted via http://www.ruby-forum.com/.