Forum: Ruby on Rails Gruff on Windows

Announcement (2017-05-07): is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see and for other Rails- und Ruby-related community platforms.
Ff7c968ec96d769974df09dc453eb746?d=identicon&s=25 Sean Blezard (Guest)
on 2006-04-14 22:03
(Received via mailing list)
Has anyone achieved a stable deployment of Gruff with Rmagick on
I've been playing around with this on Instant Rails and after installing
RMagick win 32 gem (local gem install as per instructions on web) and
Gruff on top of that. I did a test controller method that rendered the
pie chart as per the examples on the gruff site. This worked. However,
I refreshed the page again my whole SCGI session crashed spectacularly -
unable to compile *any* pages etc.

Here is the reference code in question:

      require 'RMagick'
      require 'gruff'
      g =
      g.title = "My Graph""Apples", [1, 2, 3, 4, 4, 3])"Oranges", [4, 8, 7, 9, 8, 9])"Watermelon", [2, 3, 1, 5, 6, 8])"Peaches", [9, 9, 10, 8, 7, 9])
      g.labels = {0 => '2003', 2 => '2004', 4 => '2005'}
            :disposition => 'inline',
            :type => 'image/png',
            :filename => "chart.png")

Firstly, does this code look right for a controller method? Secondly,
this work at all on Windows? In a separate rhtml page i had a simple
src> tag that references this controller method.

Thanks for any help...

This topic is locked and can not be replied to.