not a joke... I am updating an Ajax Form in a method, if correct, I need to redirect to the list action and perform a partial redisplay of the list, but the redirect request is NOT an xml_http_request, so I got the layout... , how shoudl I write the redirect ? thanks in my prop_controller def update_my_prop ...... redirect_to (:action => "list_propositions", :id => current_user ) and return if updateOK #if not the render via update_my_prop.rjs end def list_props ... if request.xml_http_request? render :partial => "list_items", :layout => false end end -- Posted via http://www.ruby-forum.com/. --~--~---------~--~----~------------~-------~--~----~ 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-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---