Unfortunately, I don’t believe that will work. From what I’ve seen,
what Wes’ solution will do is redraw the entire page inside of the
element specified in Ajax.Update, leading to a very odd looking
site-in-site effect. The best way I could think of doing it was to
send RJS back that does a simple “document.location = page_url”,
forcing the browser to reload the page from scratch.
if you are not using any “update” parameter when invoking ajax (and if
you use update you can change that easily), you can directly do
you can do that in the rjs or directly on the controller by using render
:update. Behind the scenes it will do domething pretty similar to what
you propose, which is changing window.location.href. The advantage is
you can use the parameters of redirect_to and you don’t need to
implement anything at the server side
Estamos de estreno… si necesitas llevar el control de tus gastos
visita http://www.gastosgem.com !!Es gratis!!