Ruby on Rails Tuesday, November 30, 2010

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

No comments:

Post a Comment