Hi guys i am pretty much a newbie to rails and tried to install gruff and
run the example given in home page for gruff
i am using ubuntu and dapper.
first i got two errors when i used this example
#!/usr/bin/ruby
require ''rubygems''
require ''gruff''
g = Gruff::Line.new
g.title = "My Graph"
g.data("Apples", [1, 2, 3, 4, 4, 3])
g.data("Oranges", [4, 8, 7, 9, 8, 9])
g.data("Watermelon", [2, 3, 1, 5, 6, 8])
g.data("Peaches", [9, 9, 10, 8, 7, 9])
g.labels = {0 => ''2003'', 2 => ''2004'',
4 => ''2005''}
g.write(''my_fruity_graph.png'')
when i replaced require ''gruff'' with require_gem
''gruff'' i got rid of one
but still this
unintialized name error keeps poppoin when i just run it with
ruby>ruby gruff.rb
>gruff.rb:4: uninitialized constant Gruff (NameError)
Could u guys plese tell me what i am doing wrong.
thanks
prem
Prem Anand Thilagar
Univ Of Texas Arlington
TX,76010
USA
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Ruby on Rails: Talk" group.
To post to this group, send email to
rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
To unsubscribe from this group, send email to
rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---