fluxfederation/remote_function_with_replace
Extends remote_function & link_to_remote so they support :replace as well as :update. Also adds :eval_or_update and :eval_or_replace to handle AJAX actions that sometimes return javascript, sometimes HTML.
RubyMIT