render :image => "whatever.png" ??

In other words, is there some way to get Ajax to push an image?

Is there some reason this just can't work? Or does it work already
and my eyes skipped over it?

It would be nice, sometimes, to have RMagick or whatever generate an
image on the fly and then write it to a part of the page. Think
graphs based on database info. And so on.

Hmmm. I just thought of rendering a partial with a generated image
tag. I guess an image could be given a temporary URL. I'd prefer to
write it directly from memory, though.


Perhaps send_file or send_data will satisfy you.


Rob Biedenharn