Ok. I know from the beginning that DoubleRenderError, but how to
include that same page.replace_html method in every rjs
template? Rails seemed to be dynamic and powerful but in fact i cant
implement that very simple scenario... silly.
Rather than use a partial, create the text in your after_filter method
and add a call to the end of the response body to action it as
may well be an easier way, but this seems to work for me:
new_text = "New flash notice created here"
script = <<EOS
response.body << script
pages (will need re-writing otherwise) and the tag where you display
your flash has an id of "notice".