hi,

im trying to build a ajaxified remote_form_for. this looks like that:
<% remote_form_for :search, :url => { :action => "index"} , :method => "get"
, :loading => "$('divSearchWiP').show();", :loaded =>
"$('divSearchWiP').hide();" do %>
...
<%= submit_tag "Search" %>

the form above sits in the index view. the index action does a page
replaceL=:
          render :update do |page|
                  page.replace_html 'divsearchResults', :partial =>
"results"
        end #end render


also, the partial 'results' contains a dropdown to provide a selection of
sortmethods:
<%=
select_tag "fieldSort", options_for_select(@arrSortFields,
@arrSortFieldsSel.to_s) , :onchange =>
"$('hidfieldSort').value=$('fieldSort').value;document.forms[0].submit();"
%>

facts& faqs:
1) searching works, it the form triggers an ajax call although the
html-source tells me its a POST call
2) since its a POST, "submit" hits the create action :-(
3) if i add  :html=>{ to the form-tag, i the call goes directly into the
create action.

how can i get the GET right?

thx

-- 
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Talk" group.
To post to this group, send email to rubyonrails-t...@googlegroups.com.
To unsubscribe from this group, send email to 
rubyonrails-talk+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en.

Reply via email to