tried to do it with an rjs template for the partial but then you also
need a form_remote_tag
Daan,
What you have to do is use form_remote_tag and a partial for the ajax
direction, and then use a render :update with “page.redirect_to” to “get
out of ajax” in the other direction.
So you set it up as a normal ajax encounter, but then you use
“page.redirect_to” as a “get out of ajax free card” to do a normal
non-ajax rendering of some other controller/action page.
The ajax side of it can be either with render :update or an rjs
template, as per usual.