Gruff Graphs

Well, I’m trying to generate graphs using gruff,
but I’m having problemns.

I use, require_gem ‘gruff’

then when I run g = Gruff::Line.new(475)
I get uninitialized constant Gruff

/////
c:/ruby/lib/ruby/gems/1.8/gems/activesupport-1.3.1/lib/active_support/dependencies.rb:100:in
`const_missing’
c:/ruby/lib/ruby/gems/1.8/gems/activesupport-1.3.1/lib/active_support/dependencies.rb:13

This error occured while loading the following files:
gruff.rb
c:/ruby/lib/ruby/gems/1.8/gems/gruff-0.1.2/lib/gruff/stacked_bar

I don’t know what to do… please someone help me

Fernando,

What version of Rails are you using? What OS are you on? Do you know
if you were successfully able to install ImageMagick and all its
dependencies, and RMagick? It doesn’t make sense to have an error in
stacked_bar if you are creating a line graph. Also, did you include
‘require ‘gruff’’ in your environment.rb?

Shane V.
http://shanesbrain.net

sorry about my poor information…

I’m running windows xp
I think ImageMagick and RMagick are ok, because I see no error with
this…

i’m using require 'gruff’in my environment.rb