Solved

Ruby - using Ruport

Posted on 2008-10-02
1
417 Views
Last Modified: 2012-05-05
Hello
Just started looking at Ruport and when using a very simple example -

t = Table("c:/ruport.txt")
  grouping = Grouping(t,:by => "name")
  puts grouping.to_pdf

I get an error .....
ruport_test2.rb:7: undefined method `Table' for main:Object (NoMethodError)

Any ideas as to why?
Does anybody use Ruport and if so what are your thoughts.

Phil
0
Comment
Question by:philsivyer
1 Comment
 
LVL 2

Accepted Solution

by:
karfi earned 250 total points
Comment Utility
put the following line before using ruport classes:

require 'ruport'
# and your code here
0

Featured Post

Free Trending Threat Insights Every Day

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

Join & Write a Comment

Suggested Solutions

Article by: narshlob
If you've ever programmed in Ruby and have come across either a proc or a lambda, you might have been wondering what the difference is between the two and when you would use one over the other. This article will try to explain the difference between…
Recently I spent hours debugging an issue in a Rails project where ActiveRecord was causing MySQL errors trying to create a User object of a class at the top level of a Single Table Inheritance model structure.  It turns out `.create` behaves differ…
Illustrator's Shape Builder tool will let you combine shapes visually and interactively. This video shows the Mac version, but the tool works the same way in Windows. To follow along with this video, you can draw your own shapes or download the file…
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.

771 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

11 Experts available now in Live!

Get 1:1 Help Now