From: "Williams, Chris" Date: 2004-12-03T23:52:22+09:00 Subject: Re: Problem with Rails and embedded SVG? > -----Original Message----- > From: Florian Gross [mailto:flgr@ccan.de] > Sent: Thursday, December 02, 2004 4:53 PM > To: ruby-talk@ruby-lang.org > Subject: Re: Problem with Rails and embedded SVG? > > Williams, Chris wrote: > > > How can I easily [view http headers]? I'm not sure how to check... > > http://livehttpheaders.mozdev.org/ if you use Firefox. Or just do a HTTP > request with telnet or dump the HTTP headers with wget -s. Well, after some googling I found a suitable hack to embed the SVG. I took a look at the way Tobias Reif is serving his SVG on http://www.pinkjuice.com/howto/rubysvg/ The only hack that works well (for me) is to write a ruby file which when executed forces the content-type to "image/svg+xml" and writes out the SVG graph. So I dynamically create this ruby file and then point to it as the data source for the object tag. In my case, with rails and my setup, I had to make the ruby file have a .cgi extension to make it executable. This works very well, and is much more palatable compared to my previous hack of keeping a static html page pointing at the SVG file. Chris