Way back in the old days (Rails 1.1.6), you could go from an ajax form
back to the real world by doing something like this:
render :update do |page|
page.redirect_to(:controller => ‘foo’, :action => ‘bar’)
I just upgraded my in-progress app to 1.2.1, and this seems to be broken
now. I get the dreaded old “redirection script showing up in the
browser” thing happening, which is what this rjs snippet was supposed to
fix (and used to do).
Is this no longer the proper way to redirect out of Ajax land? Or did I
just mess up in some other way and weakly blame this on 1.2.1?