Okay, so this might be kind of strange but here's the question:
I have a great number of similar controller/view interactions that I'd like to make more DRY. The user clicks a link, which is converted to perform an AJAX response with JQuery. The response expects some JavaScript to be returned and executed. Several of these follow the same pattern:
$("working_div").html("<%= render partial => 'some_partial' %>")
Is there a way to make it so that I can DRY this up by doing...
$("working_div").html("<%= yield %>")
And it still return JavaScript?