Forum: Ruby on Rails change an http_request to xml_http_request ...

Announcement (2017-05-07): is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see and for other Rails- und Ruby-related community platforms.
Ee0293412faca21e4ebf3326ed9d5f8c?d=identicon&s=25 Kad Kerforn (kadoudal)
on 2007-02-08 08:42
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

 def list_props
    if request.xml_http_request?
      render  :partial => "list_items", :layout => false
This topic is locked and can not be replied to.