I''d like to be able to dynamically generate images in my rails applications. I''m think I''m good on how to build the image data, but I''m not clear on how I can get access to the output stream to send the data. Is this just done by writing to stdout in an view? David
On Apr 30, 2005, at 3:22 AM, David Corbin wrote:> I''d like to be able to dynamically generate images in my rails > applications. > I''m think I''m good on how to build the image data, but I''m not > clear on how I > can get access to the output stream to send the data. Is this just > done by > writing to stdout in an view?Check out the send_data method of ActionController::Base. It sets up some headers for you then calls render_text on the blob you passed it. jeremy