@aneiro showed me this the other day and I just got it to work. So here’s what’s up.
So what you can do is this: define a method in your controller and put all the page.replace_html and page.hide calls in it. Do it. Ok so then in your render :update block you just call that method and pass page to it.
One caveat is you have to actually define your new method as a helper method, which is super easy. Just call, in your controller, helper_method .
Check out the gist: http://gist.github.com/61454