A more flexible ajax method would be for link_to_remote or similar to use
:complete => 'eval(request.responseText)'
and then have the response specify what action is to happen in the client, via javascript.
This could be a partial that is simply some javascript code. some response helpers could be made to assist with this code, to automatically escape whatever needs to be escaped. I propose something like this:
<%= ajax_update "target" do %>
html code to go in a div named "target", with single quotes
and any other dangerous javascript escaped.
<% end %>
This could be accompanied by similar functions for ajax_delete, ajax_insert, ajax_append, etc.
Additionally, multiple statements could be included in the response, so multiple parts of the sceen could be updated at the same time.