The elegant solution is to use Rasem, a pure ruby gem, to generate SVG images. Rasem allows you to describe your SVG images in pure ruby code. You can either save the generated image to a file or output it to a string to use it with your HTML 5 page. Rasem generates standard SVG images that are compliant with the W3C standard.
Gem install rasem
And have fun!
Checkout the project main page at: http://github.com/aseldawy/rasem
You can find examples and usage instructions there.
Ali April 17th 2011, 6:22 am
Brilliant as usual :)